aboutsummaryrefslogtreecommitdiff
path: root/benchmark/agbenchmark/challenges/deprecated/code/4_tests/artifacts_in/testfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/agbenchmark/challenges/deprecated/code/4_tests/artifacts_in/testfile.py')
-rw-r--r--benchmark/agbenchmark/challenges/deprecated/code/4_tests/artifacts_in/testfile.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmark/agbenchmark/challenges/deprecated/code/4_tests/artifacts_in/testfile.py b/benchmark/agbenchmark/challenges/deprecated/code/4_tests/artifacts_in/testfile.py
new file mode 100644
index 000000000..40e76d368
--- /dev/null
+++ b/benchmark/agbenchmark/challenges/deprecated/code/4_tests/artifacts_in/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__":
+ # create a trivial test that has 4 as the num, and 2 as the multiplier. Make sure to fill in the expected result
+ num =
+ multiplier =
+ expected_result =
+ test_multiply_int()