Skip to content

Commit

Permalink
adding some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Mar 7, 2024
1 parent 97182f0 commit 525c344
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/Mathlib/test/exact.expected.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{"env": 0}

{"sorries":
[{"proofState": 0,
"pos": {"line": 1, "column": 27},
"goal": "⊢ 0 < 1",
"endPos": {"line": 1, "column": 32}}],
"messages":
[{"severity": "warning",
"pos": {"line": 1, "column": 8},
"endPos": {"line": 1, "column": 12},
"data": "declaration uses 'sorry'"}],
"env": 1}

{"proofState": 1,
"messages":
[{"severity": "info",
"pos": {"line": 0, "column": 0},
"endPos": {"line": 0, "column": 0},
"data": "Try this: exact Nat.zero_lt_one"}],
"goals": []}

{"sorries":
[{"proofState": 2,
"pos": {"line": 1, "column": 27},
"goal": "⊢ 3 = 7",
"endPos": {"line": 1, "column": 32}}],
"messages":
[{"severity": "warning",
"pos": {"line": 1, "column": 8},
"endPos": {"line": 1, "column": 12},
"data": "declaration uses 'sorry'"}],
"env": 2}

{"message":
"Lean error:\n`exact?` could not close the goal. Try `apply?` to see partial suggestions."}

7 changes: 7 additions & 0 deletions test/incomplete.expected.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{"messages":
[{"severity": "error",
"pos": {"line": 1, "column": 15},
"endPos": {"line": 1, "column": 32},
"data": "unsolved goals\n⊢ Nat"}],
"env": 0}

3 changes: 3 additions & 0 deletions test/incomplete.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{"cmd": "def f : Nat := by apply Nat.succ"}

{"cmd": "def f (x : Bool) : Nat := by\n by_cases x\n { apply Nat.succ }"}
Empty file added test/incomplete.lean
Empty file.

0 comments on commit 525c344

Please sign in to comment.