test(tests/lean/interactive): add --server test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
823a3a7c56
commit
8de9cab62d
3 changed files with 41 additions and 0 deletions
14
tests/lean/interactive/in4.input
Normal file
14
tests/lean/interactive/in4.input
Normal file
|
@ -0,0 +1,14 @@
|
|||
VISIT simple3.lean
|
||||
WAIT
|
||||
INFO 9
|
||||
REMOVE 9
|
||||
REMOVE 8
|
||||
ECHO AFTER REMOVE 8&9
|
||||
INFO 9
|
||||
INFO 8
|
||||
INSERT 8
|
||||
theorem tst {A : Type} (a b : A) : tst.foo a b = a :=
|
||||
INSERT 9
|
||||
rfl
|
||||
WAIT
|
||||
INFO 9
|
18
tests/lean/interactive/in4.input.expected.out
Normal file
18
tests/lean/interactive/in4.input.expected.out
Normal file
|
@ -0,0 +1,18 @@
|
|||
-- BEGININFO
|
||||
-- TYPE|9|0
|
||||
∀ (a : A), eq a a
|
||||
-- ACK
|
||||
-- SYMBOL|9|0
|
||||
rfl
|
||||
-- ACK
|
||||
-- ENDINFO
|
||||
-- AFTER REMOVE 8&9
|
||||
-- BEGININFO
|
||||
-- NAY
|
||||
-- ENDINFO
|
||||
-- BEGININFO
|
||||
-- NAY
|
||||
-- ENDINFO
|
||||
-- BEGININFO
|
||||
-- NAY
|
||||
-- ENDINFO
|
9
tests/lean/interactive/simple3.lean
Normal file
9
tests/lean/interactive/simple3.lean
Normal file
|
@ -0,0 +1,9 @@
|
|||
import logic
|
||||
|
||||
namespace tst
|
||||
definition foo {A B : Type} (a : A) (b : B) := a
|
||||
definition boo {A : Type} (a : A) := foo a a
|
||||
end tst
|
||||
|
||||
theorem tst {A : Type} (a b : A) : tst.foo a b = a :=
|
||||
rfl
|
Loading…
Reference in a new issue