From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- .../tests/testsuite/good/tested_function.tig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tiger-compiler/tests/testsuite/good/tested_function.tig (limited to 'tiger-compiler/tests/testsuite/good/tested_function.tig') diff --git a/tiger-compiler/tests/testsuite/good/tested_function.tig b/tiger-compiler/tests/testsuite/good/tested_function.tig new file mode 100644 index 0000000..e5cd6c2 --- /dev/null +++ b/tiger-compiler/tests/testsuite/good/tested_function.tig @@ -0,0 +1,18 @@ +// add_5 should not be considered a unit test + +function add_5(x: int): int = x + 5 + +function test_1() = + ( + assert add_5(1) = 6 + ) + +function test_2() = + ( + assert add_5(-1) = 4 + ) + +function test_3() = + ( + assert add_5(0) = 5 + ) -- cgit v1.2.3