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.
30 lines
552 B
Text
30 lines
552 B
Text
def a := 1
|
|
|
|
@[deprecated "Don't use `hi`." (since := "1970-01-01")]
|
|
theorem hi : a = 1 := rfl
|
|
|
|
attribute [simp] hi
|
|
|
|
example (h : 1 = b) : a = b := by
|
|
simp
|
|
guard_target =ₛ 1 = b
|
|
exact h
|
|
|
|
set_option linter.all true
|
|
set_option linter.unusedSimpArgs false
|
|
|
|
example (h : 1 = b) : a = b := by
|
|
simp[
|
|
hi
|
|
]
|
|
guard_target =ₛ 1 = b
|
|
exact h
|
|
|
|
@[deprecated "Don't use `hi'`, either." (since := "1970-01-01")]
|
|
theorem hi' : True := .intro
|
|
|
|
example : True := by
|
|
-- the warning is on `simp`
|
|
simp [
|
|
hi' -- warning should be logged here
|
|
]
|