From cb6ed93c82f316095dffd00061364121a67d3532 Mon Sep 17 00:00:00 2001 From: Aymeric Wibo Date: Tue, 1 Oct 2024 15:17:54 +0200 Subject: [PATCH] tests: Variable declaration (partly as a regression test for the previous commit) --- tests/var_decl.fl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/var_decl.fl diff --git a/tests/var_decl.fl b/tests/var_decl.fl new file mode 100644 index 0000000..b3780b6 --- /dev/null +++ b/tests/var_decl.fl @@ -0,0 +1,16 @@ +let x +assert x == none + +x = 5 +assert x == 5 +assert x != none + +let y = 1 + 2 +assert y == 3 +assert y != none + +y = 23123 +assert y == 23123 + +let z = x + y +assert z == 23128