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.
34 lines
723 B
Text
34 lines
723 B
Text
module
|
|
|
|
/-! Reducibility of instances should default to `[implicit_reducible]` but be overridable. -/
|
|
|
|
instance i1 : Inhabited Nat := inferInstance
|
|
|
|
/--
|
|
info: @[implicit_reducible] private def i1 : Inhabited Nat :=
|
|
inferInstance
|
|
-/
|
|
#guard_msgs in
|
|
#print i1
|
|
|
|
@[reducible] instance i2 : Inhabited Nat := inferInstance
|
|
|
|
/--
|
|
info: @[reducible] private def i2 : Inhabited Nat :=
|
|
inferInstance
|
|
-/
|
|
#guard_msgs in
|
|
#print i2
|
|
|
|
/--
|
|
warning: instance `_private.elab.instanceReducibility.0.i3` must be marked with `@[reducible]` or `@[implicit_reducible]`
|
|
-/
|
|
#guard_msgs in
|
|
@[irreducible] instance i3 : Inhabited Nat := inferInstance
|
|
|
|
/--
|
|
info: @[irreducible] private def i3 : Inhabited Nat :=
|
|
inferInstance
|
|
-/
|
|
#guard_msgs in
|
|
#print i3
|