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.
29 lines
517 B
Text
29 lines
517 B
Text
/-!
|
|
# Improved `simpa` error messages
|
|
|
|
Updated error message to show the elaborated term rather than `h✝`
|
|
-/
|
|
|
|
/--
|
|
error: Type mismatch: After simplification, term
|
|
hp
|
|
has type
|
|
p
|
|
but is expected to have type
|
|
p ∧ q
|
|
-/
|
|
#guard_msgs in
|
|
example (p q : Prop) (hp : p ∧ True) : p ∧ q ∧ True := by
|
|
simpa using hp
|
|
|
|
/--
|
|
error: Type mismatch: After simplification, term
|
|
fun x => x
|
|
has type
|
|
True
|
|
but is expected to have type
|
|
False
|
|
-/
|
|
#guard_msgs in
|
|
example : False := by
|
|
simpa using (fun x : True => x)
|