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.
39 lines
856 B
Text
39 lines
856 B
Text
def foo : Nat → Nat
|
|
| 0 => 0
|
|
| n+1 => foo n + 1
|
|
|
|
set_option debug.moduleNameAtTimeout false
|
|
/--
|
|
error: (deterministic) timeout, maximum number of heartbeats (100) has been reached
|
|
|
|
Note: Use `set_option maxHeartbeats <num>` to set the limit.
|
|
|
|
Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
|
|
-/
|
|
#guard_msgs in
|
|
set_option maxHeartbeats 100 in
|
|
theorem bar : True := by
|
|
simp [show foo 1000 = 1000 from rfl]
|
|
|
|
/--
|
|
info: theorem bar : True :=
|
|
sorry
|
|
-/
|
|
#guard_msgs in
|
|
#print bar
|
|
|
|
/--
|
|
error: maximum recursion depth has been reached
|
|
use `set_option maxRecDepth <num>` to increase limit
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
-/
|
|
#guard_msgs in
|
|
theorem bar2 : True := by
|
|
simp [show foo 1000 = 1000 from rfl]
|
|
|
|
/--
|
|
info: theorem bar2 : True :=
|
|
sorry
|
|
-/
|
|
#guard_msgs in
|
|
#print bar2
|