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.
36 lines
945 B
Text
36 lines
945 B
Text
import Lean
|
||
/-!
|
||
# Pretty printing of `<|>`, `<*>`, `>>`, `<*`, and `*>`
|
||
|
||
https://github.com/leanprover/lean4/issues/5668
|
||
-/
|
||
|
||
/-- info: none <|> some false : Option Bool -/
|
||
#guard_msgs in #check none <|> some false
|
||
|
||
variable [Monad m] (a : m α) (b : m β) (f : m (α → β))
|
||
|
||
/-- info: f <*> a : m β -/
|
||
#guard_msgs in #check f <*> a
|
||
|
||
/-- info: a <* b : m α -/
|
||
#guard_msgs in #check a <* b
|
||
|
||
/-- info: a *> b : m β -/
|
||
#guard_msgs in #check a *> b
|
||
|
||
/-- info: Lean.Parser.ident >> Lean.Parser.symbol "hi" : Lean.Parser.Parser -/
|
||
#guard_msgs in #check Lean.Parser.ident >> "hi"
|
||
|
||
|
||
/-!
|
||
Dependent, substitutes in `()`.
|
||
-/
|
||
/-- info: some true <|> some (() == ()) : Option Bool -/
|
||
#guard_msgs in #check HOrElse.hOrElse (some true) (fun h => some <| h == ())
|
||
|
||
/-!
|
||
Not a lambda, applies `()`.
|
||
-/
|
||
/-- info: some true <|> Function.const Unit (some true) () : Option Bool -/
|
||
#guard_msgs in #check HOrElse.hOrElse (some true) (Function.const _ (some true))
|