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.
21 lines
706 B
Text
21 lines
706 B
Text
/-!
|
||
Tests that `@[csimp]` rejects constant replacements with concrete universe parameters
|
||
-/
|
||
|
||
noncomputable def funnyChoice (x : α) : α := Classical.choice ⟨x⟩
|
||
|
||
/--
|
||
error: invalid 'csimp' theorem, only constant replacement theorems (e.g., `@f = @g`) are currently supported.
|
||
-/
|
||
#guard_msgs in
|
||
@[csimp]
|
||
theorem bad_csimp : @funnyChoice.{0} = @id.{0} := rfl
|
||
|
||
/--
|
||
error: Tactic `native_decide` failed. Error: failed to compile definition, consider marking it as 'noncomputable' because it depends on 'funnyChoice', which is 'noncomputable'
|
||
-/
|
||
#guard_msgs in
|
||
example : False := by
|
||
have : funnyChoice 2 = funnyChoice 3 := rfl
|
||
have : funnyChoice 2 ≠ funnyChoice 3 := by native_decide
|
||
contradiction
|