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.
49 lines
555 B
Text
49 lines
555 B
Text
def foo : Nat := 1
|
|
|
|
def bar : Nat :=
|
|
let rec foo := 10
|
|
foo.add 1
|
|
|
|
def baz : Nat :=
|
|
.add foo 1
|
|
where
|
|
foo := 10
|
|
|
|
def bar2 : Nat :=
|
|
foo.add 1
|
|
where
|
|
foo := 10
|
|
|
|
/--
|
|
info: 11
|
|
-/
|
|
#guard_msgs in
|
|
#eval bar -- 11
|
|
/--
|
|
info: 11
|
|
-/
|
|
#guard_msgs in
|
|
#eval baz -- 11
|
|
/--
|
|
info: 11
|
|
-/
|
|
#guard_msgs in
|
|
#eval bar2
|
|
|
|
def bla.aux := 1
|
|
def bla : Nat → Nat
|
|
| n => n + bla.aux -- should not be interpreted as `(bla).aux`
|
|
|
|
/--
|
|
info: 4
|
|
-/
|
|
#guard_msgs in
|
|
#eval bla 3
|
|
|
|
def boo : Nat :=
|
|
let n := 0
|
|
n.succ + (m |>.succ) + m.succ
|
|
where
|
|
m := 1
|
|
|
|
example : boo = 5 := rfl
|