lean4-htt/tests/compile/nat_shiftr.lean
Garmelon 08eb78a5b2
chore: switch to new test/bench suite (#12590)
This PR sets up the new integrated test/bench suite. It then migrates
all benchmarks and some related tests to the new suite. There's also
some documentation and some linting.

For now, a lot of the old tests are left alone so this PR doesn't become
even larger than it already is. Eventually, all tests should be migrated
to the new suite though so there isn't a confusing mix of two systems.
2026-02-25 13:51:53 +00:00

19 lines
403 B
Text

def test (a : Nat) : IO Unit :=
for b in #[0, 1, 14, 15, 16, 17, 31, 32, 33, 63, 64, 65] do
IO.println f!"{a >>> b}"
def main : IO Unit := do
test 0
test 1
test 0xff
test 0x100
test 0x101
test 0xffff
test 0x1000_0
test 0x1000_1
test 0xffff_ffff
test 0x1_0000_0000
test 0x1_0000_0001
test 0xffff_ffff_ffff_ffff
test 0x1_0000_0000_0000_0000
test 0x1_0000_0000_0000_0001