summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/assert/good/simple_unit_test.tig
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/tests/assert/good/simple_unit_test.tig')
-rw-r--r--tiger-compiler/tests/assert/good/simple_unit_test.tig10
1 files changed, 10 insertions, 0 deletions
diff --git a/tiger-compiler/tests/assert/good/simple_unit_test.tig b/tiger-compiler/tests/assert/good/simple_unit_test.tig
new file mode 100644
index 0000000..288898c
--- /dev/null
+++ b/tiger-compiler/tests/assert/good/simple_unit_test.tig
@@ -0,0 +1,10 @@
+let
+ function test_return_10() =
+ let
+ function get_x(x : int): int = x
+ in
+ assert get_x(10) = 10
+ end
+ in
+ test_return_10()
+end