summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/good/string-ordering.tig
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/tests/good/string-ordering.tig')
-rw-r--r--tiger-compiler/tests/good/string-ordering.tig19
1 files changed, 19 insertions, 0 deletions
diff --git a/tiger-compiler/tests/good/string-ordering.tig b/tiger-compiler/tests/good/string-ordering.tig
new file mode 100644
index 0000000..8cc9297
--- /dev/null
+++ b/tiger-compiler/tests/good/string-ordering.tig
@@ -0,0 +1,19 @@
+let
+ var str1 := "wow"
+ var str2 := "owo"
+in
+ if str1 < str2 then
+ print("strictly lower");
+
+ if str1 <= str2 then
+ print("lower");
+
+ if str1 = str2 then
+ print("equal");
+
+ if str1 >= str2 then
+ print("higher");
+
+ if str1 > str2 then
+ print("strictly higher")
+end