aboutsummaryrefslogtreecommitdiff
path: root/stdlib/test
diff options
context:
space:
mode:
authorEduardo Julian2018-05-06 03:30:47 -0400
committerEduardo Julian2018-05-06 03:30:47 -0400
commite65e734e5df3746ffb7df2cc9fa33826e0083fcd (patch)
treec67b1105a4b421d527804ccbfcab4d29ec20e744 /stdlib/test
parentf5a6fe62a612c0727063fa9e530d53ddda5fcd82 (diff)
- Re-named shift-left -> left-shift, shift-right -> logical-right-shift, signed-shift-right -> arithmetic-right-shift.
Diffstat (limited to '')
-rw-r--r--stdlib/test/test/lux/data/bit.lux4
-rw-r--r--stdlib/test/test/lux/world/blob.lux6
2 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/test/test/lux/data/bit.lux b/stdlib/test/test/lux/data/bit.lux
index ca9e21d86..f8c9bc8ef 100644
--- a/stdlib/test/test/lux/data/bit.lux
+++ b/stdlib/test/test/lux/data/bit.lux
@@ -66,6 +66,6 @@
(test "Shift right respect the sign of ints."
(let [value (nat-to-int pattern)]
(if (i/< 0 value)
- (i/< 0 (&.signed-shift-right idx value))
- (i/>= 0 (&.signed-shift-right idx value)))))
+ (i/< 0 (&.arithmetic-right-shift idx value))
+ (i/>= 0 (&.arithmetic-right-shift idx value)))))
))))
diff --git a/stdlib/test/test/lux/world/blob.lux b/stdlib/test/test/lux/world/blob.lux
index bd185d16f..b2cc51d0f 100644
--- a/stdlib/test/test/lux/world/blob.lux
+++ b/stdlib/test/test/lux/world/blob.lux
@@ -49,9 +49,9 @@
_
(undefined)))))
- #let [value-8 (n/% (bit.shift-left +8 +1) value)
- value-16 (n/% (bit.shift-left +16 +1) value)
- value-32 (n/% (bit.shift-left +32 +1) value)
+ #let [value-8 (n/% (bit.left-shift +8 +1) value)
+ value-16 (n/% (bit.left-shift +16 +1) value)
+ value-32 (n/% (bit.left-shift +32 +1) value)
value-64 value
slice-size (|> to (n/- from) n/inc)
random-slice (e.assume (@.slice from to random-blob))]]