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.
22 lines
637 B
Text
22 lines
637 B
Text
do
|
|
let info ← Lean.MonadRef.mkInfoFromRefPos
|
|
let scp ← Lean.getCurrMacroScope
|
|
let quotCtx ← Lean.MonadQuotation.getContext
|
|
pure
|
|
{
|
|
raw :=
|
|
Lean.Syntax.node1 info `foo
|
|
(Lean.Syntax.node1 info `token.a (Lean.Syntax.atom info "a")) } : ?m (Lean.TSyntax `foo)
|
|
fun x =>
|
|
have __discr := x;
|
|
if __discr.isOfKind `foo = true then
|
|
have __discr_1 := __discr.getArg 0;
|
|
if __discr_1.isOfKind `token.a = true then
|
|
have __discr := __discr_1.getArg 0;
|
|
true
|
|
else
|
|
have __discr := __discr.getArg 0;
|
|
false
|
|
else
|
|
have __discr := x;
|
|
false : Lean.Syntax → Bool
|