diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2018-05-24T13·00+0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24T13·00+0200 |
commit | 743359bc8a2f7e3d7bbe0a10b19180863d82139f (patch) | |
tree | a5bb431b9724e5a65640a7f44a4e4b09c0fd908d /tests | |
parent | e87242e0def2cd8528844c48e3c75c9daf5064ef (diff) | |
parent | 88c1ea30e461092db713e58fe7521c5c43c52212 (diff) |
Merge pull request #2157 from volth/bitwise
add builtins: __bitAnd, __bitOr, __bitXor
Diffstat (limited to 'tests')
-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 b195055b7a09..5c54d10b7b47 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 bbbbc4691d75..7e9e6a0b666e 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) |