summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/01_arithmetic/03_bitwise
diff options
context:
space:
mode:
Diffstat (limited to 'tests/custom/01_arithmetic/03_bitwise')
-rw-r--r--tests/custom/01_arithmetic/03_bitwise10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/custom/01_arithmetic/03_bitwise b/tests/custom/01_arithmetic/03_bitwise
index faf4ffd..c481b3e 100644
--- a/tests/custom/01_arithmetic/03_bitwise
+++ b/tests/custom/01_arithmetic/03_bitwise
@@ -1,5 +1,7 @@
-Utpl implements C-style bitwise operations. One detail is that these operations
-coerce their operands to signed 64bit integer values internally.
+Ucode implements C-style bitwise operations. One detail is that these operations
+coerce their operands to 64bit integer values internally. If both operands are
+positive, unsigned 64bit semantics are used. If one of the operands is negative,
+both are converted to signed 64bit numbers.
-- Expect stdout --
Left shift:
@@ -23,8 +25,8 @@ Bitwise or:
120.3 | 54.3 = 126
Complement:
-~0 = -1
-~10.4 = -11
+~0 = 18446744073709551615
+~10.4 = 18446744073709551605
-- End --
-- Testcase --