Skip to content

Test issues with part06-11_diary and part06-16_dictionary_file #40

Description

@Aldrizach

Instead of requiring 1 line of "Bye now!" print output for the test_1_exit_only in ex11, it expects 2 lines of it.

Similar thing in ex16, instead of requiring 1 line of "Bye!" on quit for test_1_exit_only, and 1 line of "Dictionary entry added" at the end of add command for test_2_remove_add_words_and_exit, its expects 2 lines of each.

For part06-11_diary:

line 50 in test_diary.py is:
self.assertTrue(len(output.split("\n")) == 2, f"Your program should output two lines with input\n{input_value}\nNow it outputs \n{output}")

It should be:
self.assertTrue(len(output.split("\n")) == 1, f"Your program should output two lines with input\n{input_value}\nNow it outputs \n{output}")

For part06-16_dictionary_file:

line 53 in test_dictionary_file.py is:
self.assertTrue(len(output.split("\n")) == 2, f"Program should output two lines with input\n{f(input_data)} now the output is \n{output}")

It should be:
self.assertTrue(len(output.split("\n")) == 1, f"Program should output two lines with input\n{f(input_data)} now the output is \n{output}")

and line 67 is:
self.assertTrue(len(output.split("\n")) == 4, f"Program should output two lines with input\n{f(input_data)} now the output is \n{output}")

It should be:
self.assertTrue(len(output.split("\n")) == 2, f"Program should output two lines with input\n{f(input_data)} now the output is \n{output}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions