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
298 B
Text
26 lines
298 B
Text
|
|
structure A :=
|
|
(x y : Nat)
|
|
|
|
structure B :=
|
|
(z : Nat)
|
|
|
|
structure C extends A, B
|
|
|
|
def f (c : C) :=
|
|
c.x + c.y + c.z
|
|
|
|
theorem ex1 : f {x := 10, y := 20, z := 30} = 60 :=
|
|
rfl
|
|
|
|
structure D
|
|
|
|
def g (d : D) : D :=
|
|
d
|
|
|
|
theorem ex2 : g {} = {} :=
|
|
rfl
|
|
|
|
theorem ex3 (d : D) : g d = {} := by
|
|
cases d
|
|
exact rfl
|