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.
8 lines
385 B
Text
8 lines
385 B
Text
def reverse.{u_1} : {α : Type u_1} → List α → List α :=
|
||
fun {α} as => reverse.loop as []
|
||
opaque reverse.loop.{u_1} : {α : Type u_1} → List α → List α → List α
|
||
partial def reverse.loop._unsafe_rec.{u_1} : {α : Type u_1} → List α → List α → List α :=
|
||
fun {α} a a_1 =>
|
||
match a, a_1 with
|
||
| [], r => r
|
||
| a :: as, r => reverse.loop._unsafe_rec as (a :: r)
|