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
661 B
Text
24 lines
661 B
Text
/-!
|
||
# Tests for the `pp.proofs` option
|
||
-/
|
||
|
||
section
|
||
set_option pp.analyze.trustSubst true
|
||
set_option pp.proofs false
|
||
example (h : α = β) : h ▸ (a : α) = (b : β) := _
|
||
example (h : α = β) : id h ▸ (a : α) = (b : β) := _
|
||
example (h : α = β) : id h ▸ (a : α) = (b : β) := by simp (config := { failIfUnchanged := false })
|
||
set_option pp.proofs.withType false
|
||
example (h : α = β) : id h ▸ (a : α) = (b : β) := _
|
||
set_option pp.proofs true
|
||
example (h : α = β) : id h ▸ (a : α) = (b : β) := _
|
||
end
|
||
|
||
/-!
|
||
Testing threshold option
|
||
-/
|
||
section
|
||
#check let _ := Nat.le_succ 1; 0
|
||
set_option pp.proofs.threshold 10
|
||
#check let _ := Nat.le_succ 1; 0
|
||
end
|