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.
18 lines
457 B
Text
18 lines
457 B
Text
/- ANCHOR: doc -/
|
|
open Lean in
|
|
macro "begin " ts:tactic,*,? i:"end" : term => do
|
|
-- preserve position of the last token, which is used
|
|
-- as the error position in case of an unfinished proof
|
|
`(by { $[$ts:tactic]* }%$i)
|
|
|
|
theorem ex1 (x : Nat) : x + 0 = 0 + x :=
|
|
begin
|
|
rw [Nat.add_zero],
|
|
rw [Nat.zero_add]
|
|
end
|
|
/- ANCHOR_END: doc -/
|
|
|
|
theorem ex2 (x : Nat) : x + 0 = 0 + x :=
|
|
begin
|
|
rw [Nat.add_zero]
|
|
end -- error should be shown here
|