diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-01-04 16:16:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 16:16:28 +0100 |
commit | 1377e23afff90128b18ac60c10071295fc0afbab (patch) | |
tree | 04397dab9be96a5978e08366299671a8aa507267 /tests/custom/01_arithmetic/03_bitwise | |
parent | 8907ce41a36f8d42097d884550fb3cfbba62e6c5 (diff) | |
parent | b605dbfcf04f310e08634b52507da7a4155bfce1 (diff) |
Merge pull request #30 from jow-/rework-number-handling
treewide: rework numeric value handling
Diffstat (limited to 'tests/custom/01_arithmetic/03_bitwise')
-rw-r--r-- | tests/custom/01_arithmetic/03_bitwise | 10 |
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 -- |