summaryrefslogtreecommitdiff
path: root/lib/std/test/bigint.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/test/bigint.myr')
-rw-r--r--lib/std/test/bigint.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/std/test/bigint.myr b/lib/std/test/bigint.myr
index c87f1f3..77b822f 100644
--- a/lib/std/test/bigint.myr
+++ b/lib/std/test/bigint.myr
@@ -21,6 +21,7 @@ const main = {
[.name = "format-zero", .fn = fmtzero],
[.name = "division", .fn = smokediv],
[.name = "modulo", .fn = smokemod],
+ [.name = "shift", .fn = shiftoff],
[.name = "add-negatives", .fn = addneg],
[.name = "sub-negatives", .fn = subneg],
][:])
@@ -264,6 +265,13 @@ const subneg = {c
"0")
}
+const shiftoff = {c
+ run(c, std.mk(`Shr ( \
+ std.mk(`Val "1"), \
+ std.mk(`Val "65"))), \
+ "0")
+}
+
const run = {c : testr.ctx#, e : cmd#, res : byte[:]
var buf : byte[4096]
var v, n