summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/good/string-ordering.tig
blob: 8cc9297897123f1e24d59e61f69e7e693579aa39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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