diff --git a/README.md b/README.md index 76fea5e..95ce7bb 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,9 @@ Give an integer: *11* Give a float: *4.2* -Give a boolean: -*True* You gave the string bye-bye You gave the integer 11 You gave the float 4.2 -You gave the boolean True ``` ```plaintext @@ -26,10 +23,7 @@ Give an integer: *-4* Give a float: *3200.1* -Give a boolean: -*False* You gave the string Oops! You gave the integer -4 You gave the float 3200.1 -You gave the boolean False ``` diff --git a/tests/test_exercise.py b/tests/test_exercise.py index 964a73c..6d83647 100644 --- a/tests/test_exercise.py +++ b/tests/test_exercise.py @@ -2,8 +2,8 @@ import src.exercise def test_exercise(): - input_values = ["bye","114","4.6","False"] - input_values_stored = ["bye","114","4.6","False"] + input_values = ["bye","114","4.6"] + input_values_stored = ["bye","114","4.6"] output = [] def mock_input(s=None): @@ -19,8 +19,7 @@ def mock_input(s=None): src.exercise.main() - assert [output[0],output[1],output[2],output[3]] == ["Give a string:","Give an integer:","Give a float:","Give a boolean:"] - assert [output[4],output[5],output[6],output[7]] == ["You gave the string " + input_values_stored[0],\ + assert [output[0],output[1],output[2]]] == ["Give a string:","Give an integer:","Give a float:"] + assert [output[3],output[4],output[5]] == ["You gave the string " + input_values_stored[0],\ "You gave the integer " + input_values_stored[1],\ - "You gave the float " + input_values_stored[2],\ - "You gave the boolean " + input_values_stored[3]] + "You gave the float " + input_values_stored[2]]