chore: simplify tests

This commit is contained in:
Sebastian Ullrich 2021-04-05 21:58:57 +02:00
parent fbd6adaf21
commit e863376be1
4 changed files with 12 additions and 28 deletions

View file

@ -3,15 +3,9 @@ structure Foo where
example (f : Foo) : f.
--^ textDocument/completion
example : Nat := 0 -- recover
example (f : Foo) : f.f
--^ textDocument/completion
example : Nat := 0 -- recover
example (f : Foo) : id f |>.
--^ textDocument/completion
example : Nat := 0 -- recover
example (f : Foo) : id f |>.f
--^ textDocument/completion

View file

@ -5,19 +5,19 @@
{"label": "mk", "detail": "Nat → Foo"}],
"isIncomplete": true}
{"textDocument": {"uri": "file://completion.lean"},
"position": {"line": 7, "character": 23}}
"position": {"line": 5, "character": 23}}
{"items":
[{"label": "foo", "detail": "Foo → Nat"},
{"label": "mk", "detail": "Nat → Foo"}],
"isIncomplete": true}
{"textDocument": {"uri": "file://completion.lean"},
"position": {"line": 11, "character": 28}}
"position": {"line": 7, "character": 28}}
{"items":
[{"label": "foo", "detail": "Foo → Nat"},
{"label": "mk", "detail": "Nat → Foo"}],
"isIncomplete": true}
{"textDocument": {"uri": "file://completion.lean"},
"position": {"line": 15, "character": 29}}
"position": {"line": 9, "character": 29}}
{"items":
[{"label": "foo", "detail": "Foo → Nat"},
{"label": "mk", "detail": "Nat → Foo"}],

View file

@ -1,17 +1,7 @@
#check 'hi
example : Nat := 0 -- recover
#check '\y'
example : Nat := 0 -- recover
#check "hi
example : Nat := 0 -- recover
#check hi.«
example : Nat := 0 -- recover
/--
example : Nat := 0 -- recover
#print Nat
/-

View file

@ -1,15 +1,15 @@
tokenErrors.lean:1:10: error: missing end of character literal
tokenErrors.lean:4:9: error: invalid escape sequence
tokenErrors.lean:7:7: error: unterminated string literal
tokenErrors.lean:10:11: error: unterminated identifier escape
tokenErrors.lean:14:0: error: unterminated comment
tokenErrors.lean:13:0-13:3: error: unexpected doc string
tokenErrors.lean:2:9: error: invalid escape sequence
tokenErrors.lean:3:7: error: unterminated string literal
tokenErrors.lean:4:11: error: unterminated identifier escape
tokenErrors.lean:6:0: error: unterminated comment
tokenErrors.lean:5:0-5:3: error: unexpected doc string
failed to pretty print term (use 'set_option pp.rawOnError true' for raw representation)
tokenErrors.lean:17:0: error: unterminated comment
tokenErrors.lean:16:0-16:6: error: unknown constant '[anonymous]'
tokenErrors.lean:7:0: error: unterminated comment
tokenErrors.lean:6:0-6:6: error: unknown constant '[anonymous]'
inductive Nat : Type
constructors:
Nat.zero : Nat
Nat.succ : Nat → Nat
tokenErrors.lean:17:1: error: unterminated comment
tokenErrors.lean:17:0-17:1: error: unexpected command
tokenErrors.lean:7:1: error: unterminated comment
tokenErrors.lean:7:0-7:1: error: unexpected command