Skip to content

Passed tests are printed out in alphabetical order, instead of test-order in koans files #2

@pavemina

Description

@pavemina

Very minor, but slightly confusing. The passed test are printed in alphabetical order, instead of the real order as they appear in the koan file, or the test-order.

For example in about_strings.py, tests listed in the following order within the file:

Line 12: def test_create_string_with_double_quotes(self):
Line 19: def test_create_string_out_of_an_integer(self):
Line 26: def test_plus_concatenates_strings(self):
Line 32: def test_plus_will_not_modify_original_strings(self):
Line 42: def test_len_returns_length_of_string(self):
Line 48: def test_strings_can_be_split(self):
Line 55: def test_strings_can_be_joined(self):
Line 61: def test_use_format_to_interpolate_variables(self):
Line 69: def test_strings_can_change_case(self):
Line 77: def test_you_can_get_a_substring_from_a_string(self):
Line 83: def test_you_can_get_a_single_character_from_a_string(self):
Line 89: def test_if_a_string_contains_another_string(self):

But when "contemplating" through the koan, the successful tests are printed alphabetically:

Thinking AboutStrings
test_create_string_out_of_an_integer has expanded your awareness.
test_create_string_with_double_quotes has expanded your awareness.
test_if_a_string_contains_another_string has expanded your awareness.
test_len_returns_length_of_string has expanded your awareness.
test_plus_concatenates_strings has expanded your awareness.
test_plus_will_not_modify_original_strings has expanded your awareness.
test_strings_can_be_joined has expanded your awareness.
test_strings_can_be_split has expanded your awareness.
test_strings_can_change_case has expanded your awareness.
test_use_format_to_interpolate_variables has expanded your awareness.
test_you_can_get_a_single_character_from_a_string has expanded your awareness.
test_you_can_get_a_substring_from_a_string has expanded your awareness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions