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.
19 lines
642 B
Text
19 lines
642 B
Text
example : Except String Nat := do
|
|
try
|
|
-- The try block has result type Unit:
|
|
pure ()
|
|
catch _ =>
|
|
-- The doLetElse here should not "eat" the `return 42` as its body seq.
|
|
-- If it does, we'd get a type error because the result type is not Unit.
|
|
let .some true := none | throw "error"
|
|
return 42
|
|
|
|
example : Except String Nat := do
|
|
try
|
|
-- The try block has result type Unit:
|
|
pure ()
|
|
catch _ =>
|
|
-- The doLetArrow here should not "eat" the `return 42` as its body seq.
|
|
-- If it does, we'd get a type error because the result type is not Unit.
|
|
let .some true ← pure none | throw "error"
|
|
return 42
|