diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-08-02 18:53:02 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-08-02 18:53:02 +0200 |
commit | 8e74c0bfd1b61b175f04a7e0a8f0a3d9db809f1a (patch) | |
tree | 247f6bba14add873cbf19e4e5ce5e531edadad52 /tests/lang/eval-okay-arithmetic.nix | |
parent | 3d77b28eacc940356e94c36017fb2d9f1a1b7ec2 (diff) |
Let the ordering operators also work on strings
E.g. ‘"foo" < "bar"’ now works.
Diffstat (limited to 'tests/lang/eval-okay-arithmetic.nix')
-rw-r--r-- | tests/lang/eval-okay-arithmetic.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-arithmetic.nix b/tests/lang/eval-okay-arithmetic.nix index 62a0ada06..8f307b20e 100644 --- a/tests/lang/eval-okay-arithmetic.nix +++ b/tests/lang/eval-okay-arithmetic.nix @@ -50,6 +50,11 @@ let { (if 2 > 1 == 1 < 2 then 1 else err) (if 1 + 2 * 3 >= 7 then 1 else err) (if 1 + 2 * 3 < 7 then err else 1) + + # Not integer, but so what. + (if "aa" < "ab" then 1 else err) + (if "aa" < "aa" then err else 1) + (if "foo" < "foobar" then 1 else err) ]; } |