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.
12 lines
266 B
Text
12 lines
266 B
Text
import Lean
|
|
|
|
open Lean Meta Elab Term in
|
|
elab "whnf%" t:term : term <= expectedType => do
|
|
let r ← whnf (← elabTerm t expectedType)
|
|
trace[Meta.debug] "r: {r}"
|
|
return r
|
|
|
|
opaque x : Option Nat := some 42
|
|
|
|
set_option trace.Meta.debug true
|
|
#eval whnf% x.getD 0
|