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.
24 lines
422 B
Text
24 lines
422 B
Text
import Lean
|
|
|
|
namespace Foo
|
|
def f (x y : Nat) := x + y + x
|
|
scoped infix:65 " ++ " => f
|
|
end Foo
|
|
|
|
open Foo in
|
|
def f1 (x : Nat) := x ++ x
|
|
|
|
#print f1
|
|
|
|
def f2 (x : Nat) := open Foo in x ++ x
|
|
|
|
#print f2
|
|
|
|
open Foo in
|
|
#print f1
|
|
|
|
open Lean.Parser.Command in
|
|
def syntaxMatcher : Unit :=
|
|
match Lean.Syntax.missing with
|
|
| `(declId|$id:ident$[.{$ls,*}]?) => () -- unknown parser declId
|
|
| _ => ()
|