diff options
author | volth <volth@volth.com> | 2018-05-24 12:48:48 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2018-05-24 12:51:34 +0000 |
commit | 88c1ea30e461092db713e58fe7521c5c43c52212 (patch) | |
tree | 3f2a948b37da0076daef31facbfc09ec3ad677a7 /tests/lang | |
parent | 6cc28c0589a0072e94128976ddbf8b2fbfd9f496 (diff) |
add docs and tests
Diffstat (limited to 'tests/lang')
-rw-r--r-- | tests/lang/eval-okay-arithmetic.exp | 2 | ||||
-rw-r--r-- | tests/lang/eval-okay-arithmetic.nix | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-arithmetic.exp b/tests/lang/eval-okay-arithmetic.exp index b195055b7..5c54d10b7 100644 --- a/tests/lang/eval-okay-arithmetic.exp +++ b/tests/lang/eval-okay-arithmetic.exp @@ -1 +1 @@ -2188 +2216 diff --git a/tests/lang/eval-okay-arithmetic.nix b/tests/lang/eval-okay-arithmetic.nix index bbbbc4691..7e9e6a0b6 100644 --- a/tests/lang/eval-okay-arithmetic.nix +++ b/tests/lang/eval-okay-arithmetic.nix @@ -26,6 +26,10 @@ let { (56088 / 123 / 2) (3 + 4 * const 5 0 - 6 / id 2) + (builtins.bitAnd 12 10) # 0b1100 & 0b1010 = 8 + (builtins.bitOr 12 10) # 0b1100 | 0b1010 = 14 + (builtins.bitXor 12 10) # 0b1100 ^ 0b1010 = 6 + (if 3 < 7 then 1 else err) (if 7 < 3 then err else 1) (if 3 < 3 then err else 1) |