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.
21 lines
575 B
Text
21 lines
575 B
Text
example : True := by
|
|
if 1 + 1 = 2 then _ else ?_
|
|
case pos => trivial
|
|
fail_if_success case neg => contradiction
|
|
· contradiction
|
|
|
|
example (p : Prop) : True := by
|
|
if p then ?foo else trivial
|
|
case foo => trivial
|
|
|
|
/-! Should not accidentally leak `open Classical` into branches. -/
|
|
|
|
/--
|
|
error: failed to synthesize instance of type class
|
|
Decidable p
|
|
|
|
Hint: Type class instance resolution failures can be inspected with the `set_option trace.Meta.synthInstance true` command.
|
|
-/
|
|
#guard_msgs in
|
|
example (p : Prop) : True := by
|
|
if p then exact decide p else trivial
|