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.
19 lines
404 B
Text
19 lines
404 B
Text
import Lean
|
|
|
|
inductive Foo where
|
|
| a | b | c
|
|
|
|
namespace Foo
|
|
|
|
scoped instance (priority := 10) inst1 : Inhabited Foo :=
|
|
⟨.a⟩
|
|
|
|
instance inst2 : Inhabited Foo :=
|
|
⟨.b⟩
|
|
|
|
open Lean Meta
|
|
def test (declName : Name) : CoreM Unit := do
|
|
IO.println s!"{declName}, priority: {← getInstancePriority? declName}, kind: {← getInstanceAttrKind? declName}"
|
|
|
|
#eval test `Foo.inst1
|
|
#eval test `Foo.inst2
|