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.
32 lines
570 B
Text
32 lines
570 B
Text
/-
|
||
Copyright (c) 2021 Kim Morrison. All rights reserved.
|
||
Released under Apache 2.0 license as described in the file LICENSE.
|
||
Authors: Kim Morrison
|
||
-/
|
||
|
||
/--
|
||
info: Try this:
|
||
[apply] exact (n, 37)
|
||
-/
|
||
#guard_msgs in example (n : Nat) : Nat × Nat := by
|
||
show_term
|
||
constructor
|
||
exact n
|
||
exact 37
|
||
|
||
/--
|
||
info: Try this:
|
||
[apply] refine (?_, ?_)
|
||
-/
|
||
#guard_msgs in example : Nat × Nat := by
|
||
show_term constructor
|
||
repeat exact 42
|
||
|
||
/--
|
||
info: Try this:
|
||
[apply] fun {X} => X
|
||
-/
|
||
#guard_msgs in example : {_a : Nat} → Nat :=
|
||
show_term by
|
||
intro X
|
||
exact X
|