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.
26 lines
473 B
Text
26 lines
473 B
Text
class foo (F : Type) where
|
||
foo : F
|
||
|
||
class foobar (F : outParam Type) [foo F] where
|
||
bar : F
|
||
|
||
class C (α : Type) where
|
||
val : α
|
||
|
||
class D (α : Type) (β : outParam Type) [C β] where
|
||
val1 : α
|
||
val2 : β := C.val
|
||
|
||
instance : C String where
|
||
val := "hello"
|
||
|
||
instance : C Nat where
|
||
val := 42
|
||
|
||
instance : D Nat String where
|
||
val1 := 37
|
||
|
||
def f (α : Type) {β : Type} {_ : C β} [D α β] : α × β :=
|
||
(D.val1, D.val2 α)
|
||
|
||
example : f Nat = (37, "hello") := rfl
|