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