Ad
  • Custom User Avatar

    There is an issue on "Integration Tests for calculate_volume -> output_volume"

    expectation:
    test.it("Integration Tests for calculate_volume -> output_volume")
    test.assert_equals(print_output[25], "The volume of a sphere with radius 15.3 is: 15002.4743994", "Argument is Real")
    test.assert_equals(print_output[26], "The volume of a sphere with radius 30.0 is: 113097.3336", "Argument is String")
    test.assert_equals(print_output[27], "The volume of a sphere with radius 15.0 is: 14137.1667", "Argument is Integer")

    tests in code:

    Then, we'll "integration test" that the units work together:

    ...

    x_print(output_volume(5.0, calculate_volume(5.0)))
    x_print(output_volume("10.0", calculate_volume("10.0")))
    x_print(output_volume(15, calculate_volume(15)))

    Are we expected to change the values of the tests or to change the expected value in the testcases?