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.
32 lines
737 B
Text
32 lines
737 B
Text
class A (α : Type) where
|
||
one : α
|
||
|
||
class B (α : Type) extends A α where
|
||
two : α
|
||
|
||
class C (α : Type) extends A α where
|
||
three : α
|
||
|
||
class D (α : Type) extends B α, C α
|
||
|
||
attribute [instance 10] C.toA
|
||
|
||
set_option pp.all true
|
||
|
||
def foo [D α] : A α := inferInstance -- should use `B.toA` since it has higher priority
|
||
#print foo
|
||
|
||
attribute [instance 5] B.toA
|
||
|
||
def bla [D α] : A α := inferInstance -- should use `C.toA` since it has higher priority
|
||
#print bla
|
||
|
||
attribute [-instance] C.toA
|
||
|
||
def boo [D α] : A α := inferInstance -- should use `B.toA`, `C.toA` attribute was erased
|
||
#print boo
|
||
|
||
attribute [instance 10] C.toA
|
||
|
||
def boo2 [D α] : A α := inferInstance -- should use `C.toA` since it has higher priority
|
||
#print boo2
|