From e65e734e5df3746ffb7df2cc9fa33826e0083fcd Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 6 May 2018 03:30:47 -0400 Subject: - Re-named shift-left -> left-shift, shift-right -> logical-right-shift, signed-shift-right -> arithmetic-right-shift. --- stdlib/test/test/lux/data/bit.lux | 4 ++-- stdlib/test/test/lux/world/blob.lux | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'stdlib/test') 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))]] -- cgit v1.2.3