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.
28 lines
511 B
Text
28 lines
511 B
Text
syntax "#" noWs hexnum : term
|
||
open Lean in
|
||
macro_rules
|
||
| `(#$n:hexnum) => `(($(quote n.getHexNumSize), $(quote n.getHexNumVal)))
|
||
|
||
/-- info: (4, 44733) : Nat × Nat -/
|
||
#guard_msgs in
|
||
#check #aebd
|
||
|
||
/-- info: (1, 10) : Nat × Nat -/
|
||
#guard_msgs in
|
||
#check #a
|
||
|
||
/-- info: (2, 16) : Nat × Nat -/
|
||
#guard_msgs in
|
||
#check #10
|
||
|
||
/-- info: (2, 5) : Nat × Nat -/
|
||
#guard_msgs in
|
||
#check #05
|
||
|
||
/-- info: (3, 10) : Nat × Nat -/
|
||
#guard_msgs in
|
||
#check #00a
|
||
|
||
/-- info: (8, 65536) : Nat × Nat -/
|
||
#guard_msgs in
|
||
#check #0001_0000
|