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.
24 lines
564 B
Text
24 lines
564 B
Text
import Lean
|
|
|
|
open Lean Meta Elab Tactic in
|
|
elab "my_tac" : tactic =>
|
|
liftMetaTactic1 fun mvarId => do
|
|
mvarId.assign (mkConst ``True.intro)
|
|
return none
|
|
|
|
example : True := by
|
|
my_tac -- should work
|
|
|
|
/--
|
|
error: (kernel) declaration type mismatch, '_example' has type
|
|
True
|
|
but it is expected to have type
|
|
1 = 2
|
|
-/
|
|
#guard_msgs in
|
|
example : 1 = 2 := by
|
|
my_tac -- generates invalid proof that is rejected by the kernel
|
|
|
|
set_option debug.skipKernelTC true in
|
|
example : 1 = 2 := by
|
|
my_tac -- generates invalid proof that is **not** checked by the kernel
|