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.
30 lines
366 B
Text
30 lines
366 B
Text
namespace Foo
|
|
|
|
def x := 10
|
|
|
|
end Foo
|
|
|
|
#check Foo.x
|
|
|
|
open Foo
|
|
|
|
#check x
|
|
|
|
theorem ex1 : x = Foo.x := rfl
|
|
|
|
namespace Foo
|
|
|
|
def f x y := x + y + 1
|
|
|
|
scoped infix:70 "~~" => f
|
|
|
|
#check 1 ~~ 2
|
|
|
|
theorem ex1 : x ~~ y = f x y := rfl
|
|
|
|
end Foo
|
|
|
|
#check 1 ~~ 2 -- works because we have an `open Foo` above
|
|
|
|
theorem ex2 : x ~~ y = f x y := rfl
|
|
theorem ex3 : x ~~ y = Foo.f x y := rfl
|