Skip to content

Commit 14a7c0f

Browse files
Simplify test
1 parent c90a02c commit 14a7c0f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

test/set_option.expected.out

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{"messages":
22
[{"severity": "info",
3-
"pos": {"line": 8, "column": 0},
4-
"endPos": {"line": 8, "column": 8},
5-
"data": "Elab.async = false"}],
3+
"pos": {"line": 1, "column": 0},
4+
"endPos": {"line": 1, "column": 6},
5+
"data": "1 : Nat"}],
66
"env": 0}
77

88
{"messages":
99
[{"severity": "info",
10-
"pos": {"line": 10, "column": 0},
11-
"endPos": {"line": 10, "column": 8},
12-
"data": "Elab.async = true"}],
10+
"pos": {"line": 2, "column": 0},
11+
"endPos": {"line": 2, "column": 6},
12+
"data": "(1 : Nat) : Nat"}],
1313
"env": 1}
1414

1515
{"messages":
1616
[{"severity": "info",
17-
"pos": {"line": 8, "column": 0},
18-
"endPos": {"line": 8, "column": 8},
19-
"data": "Elab.async = true"}],
17+
"pos": {"line": 1, "column": 0},
18+
"endPos": {"line": 1, "column": 6},
19+
"data": "(1 : Nat) : Nat"}],
2020
"env": 2}
2121

test/set_option.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{"cmd": "import Lean\nopen Lean Elab Command\n\nelab \"#show_pp\" : command => do\n let o ← getOptions\n logInfo m!\"Elab.async = {Elab.async.get o}\"\n\n#show_pp"}
1+
{"cmd": "#check 1"}
22

3-
{"cmd": "import Lean\nopen Lean Elab Command\n\nset_option Elab.async true\n\nelab \"#show_pp\" : command => do\n let o ← getOptions\n logInfo m!\"Elab.async = {Elab.async.get o}\"\n\n#show_pp"}
3+
{"cmd": "set_option pp.numericTypes true\n#check 1"}
44

5-
{"cmd": "import Lean\nopen Lean Elab Command\n\nelab \"#show_pp\" : command => do\n let o ← getOptions\n logInfo m!\"Elab.async = {Elab.async.get o}\"\n\n#show_pp", "setOptions":[[["Elab","async"],true]]}
5+
{"cmd": "#check 1", "setOptions":[[["pp","numericTypes"],true]]}
66

0 commit comments

Comments
 (0)