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.
32 lines
558 B
Text
32 lines
558 B
Text
syntax (name := mycheck) "#check" sepBy(term, ",") : command
|
|
|
|
open Lean
|
|
|
|
macro_rules (kind := mycheck)
|
|
| `(#check $es,*) =>
|
|
let cmds := es.getElems.map $ fun e => mkNode `Lean.Parser.Command.check #[mkAtom "#check", e]
|
|
pure $ mkNullNode cmds
|
|
|
|
/-- info: Bool.true : Bool -/
|
|
#guard_msgs in
|
|
#check true
|
|
|
|
/--
|
|
info: Bool.true : Bool
|
|
---
|
|
info: Bool.true : Bool
|
|
-/
|
|
#guard_msgs in
|
|
#check true, true
|
|
|
|
/--
|
|
info: Bool.true : Bool
|
|
---
|
|
info: 1 : Nat
|
|
---
|
|
info: 3 : Nat
|
|
---
|
|
info: fun x => x + 1 : Nat → Nat
|
|
-/
|
|
#guard_msgs in
|
|
#check true, 1, 3, fun (x : Nat) => x + 1
|