-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: duplicated and misaligned messages and info trees in output (#41)
* Reproduce #40 * Deduplicate messages and trees with the initial command state * Update expected output after the fix * Update expected output for variables.in, deduplicated * Simplify
- Loading branch information
Showing
6 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{"env": 0} | ||
|
||
{"messages": | ||
[{"severity": "info", | ||
"pos": {"line": 1, "column": 0}, | ||
"endPos": {"line": 1, "column": 6}, | ||
"data": "f : Nat"}], | ||
"env": 1} | ||
|
||
{"messages": | ||
[{"severity": "error", | ||
"pos": {"line": 1, "column": 7}, | ||
"endPos": {"line": 1, "column": 8}, | ||
"data": "unknown identifier 'g'"}], | ||
"env": 2} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{"cmd": "def f := 2"} | ||
|
||
{"cmd": "#check f", "env": 0} | ||
|
||
{"cmd": "#check g", "env": 1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{"sorries": | ||
[{"proofState": 0, | ||
"pos": {"line": 1, "column": 24}, | ||
"goal": "⊢ 1 = 1", | ||
"endPos": {"line": 1, "column": 29}}], | ||
"messages": | ||
[{"severity": "warning", | ||
"pos": {"line": 1, "column": 8}, | ||
"endPos": {"line": 1, "column": 12}, | ||
"data": "declaration uses 'sorry'"}], | ||
"env": 0} | ||
|
||
{"sorries": | ||
[{"proofState": 1, | ||
"pos": {"line": 1, "column": 24}, | ||
"goal": "⊢ 2 = 2", | ||
"endPos": {"line": 1, "column": 29}}], | ||
"messages": | ||
[{"severity": "warning", | ||
"pos": {"line": 1, "column": 8}, | ||
"endPos": {"line": 1, "column": 12}, | ||
"data": "declaration uses 'sorry'"}], | ||
"env": 1} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"cmd": "theorem thm1 : 1 = 1 := sorry"} | ||
|
||
{"cmd": "theorem thm2 : 2 = 2 := sorry", "env": 0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters