diff options
Diffstat (limited to 'benchmark/agbenchmark/challenges/deprecated/code/2_write/artifacts_out/test.py')
-rw-r--r-- | benchmark/agbenchmark/challenges/deprecated/code/2_write/artifacts_out/test.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmark/agbenchmark/challenges/deprecated/code/2_write/artifacts_out/test.py b/benchmark/agbenchmark/challenges/deprecated/code/2_write/artifacts_out/test.py new file mode 100644 index 000000000..5446d98eb --- /dev/null +++ b/benchmark/agbenchmark/challenges/deprecated/code/2_write/artifacts_out/test.py @@ -0,0 +1,16 @@ +from sample_code import multiply_int + + +def test_multiply_int(num: int, expected_result: int) -> None: + result = multiply_int(num) + print(result) + assert ( + result == expected_result + ), f"AssertionError: Expected the output to be {expected_result}" + + +if __name__ == "__main__": + # test the trivial case + num = 4 + expected_result = 8 + test_multiply_int(num, expected_result) |