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.
31 lines
597 B
Text
31 lines
597 B
Text
/-!
|
|
# `simp?` in conversion mode
|
|
|
|
Tests that `simp?` and `dsimp?` work properly in `conv` mode: namely, that each displays the
|
|
appropriate suggestion and applies the corresponding simplification to the focused expression.
|
|
-/
|
|
|
|
attribute [simp] Nat.two_mul
|
|
|
|
/--
|
|
info: Try this:
|
|
[apply] simp only [Nat.two_mul]
|
|
-/
|
|
#guard_msgs in
|
|
example (n : Nat) : 123 + 2 * n = 123 + (n + n) := by
|
|
conv =>
|
|
enter [1, 2]
|
|
simp?
|
|
|
|
|
|
@[simp] def foo (n : Nat) := n + 1
|
|
|
|
/--
|
|
info: Try this:
|
|
[apply] dsimp only [foo]
|
|
-/
|
|
#guard_msgs in
|
|
example (n : Nat) : foo n = n + 1 := by
|
|
conv =>
|
|
lhs
|
|
dsimp?
|