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.
33 lines
710 B
Text
33 lines
710 B
Text
/-!
|
|
# Tests for the `pp_using_anonymous_constructor` attribute
|
|
-/
|
|
|
|
/-!
|
|
Custom structure
|
|
-/
|
|
|
|
structure S where
|
|
(x y : Nat)
|
|
|
|
/-- info: { x := 1, y := 2 } : S -/
|
|
#guard_msgs in #check {x := 1, y := 2 : S}
|
|
|
|
attribute [pp_using_anonymous_constructor] S
|
|
/-- info: ⟨1, 2⟩ : S -/
|
|
#guard_msgs in #check {x := 1, y := 2 : S}
|
|
|
|
/-!
|
|
`Fin`
|
|
-/
|
|
/-- info: ⟨2, ⋯⟩ : Fin 3 -/
|
|
#guard_msgs in #check Fin.mk 2 (by omega : 2 < 3)
|
|
|
|
/-!
|
|
`Subtype`
|
|
-/
|
|
/-- info: ⟨2, ⋯⟩ : { n // n < 3 } -/
|
|
#guard_msgs in #check (⟨2, by omega⟩ : {n : Nat // n < 3})
|
|
|
|
set_option pp.universes true in
|
|
/-- info: Subtype.mk.{1} 2 ⋯ : Subtype.{1} fun n => LT.lt.{0} n 3 -/
|
|
#guard_msgs in #check (⟨2, by omega⟩ : {n : Nat // n < 3})
|