test(tests/lean/interactive): add tests for coercion and overload info
This commit is contained in:
parent
f04e462bf3
commit
c74da8bea2
2 changed files with 68 additions and 0 deletions
11
tests/lean/interactive/overload_coercion.input
Normal file
11
tests/lean/interactive/overload_coercion.input
Normal file
|
@ -0,0 +1,11 @@
|
|||
VISIT overload_coercions.lean
|
||||
SYNC 6
|
||||
open nat num
|
||||
variable a : nat
|
||||
variable b : num
|
||||
variable c : bool
|
||||
check a + b
|
||||
check add a c
|
||||
WAIT
|
||||
INFO 5
|
||||
INFO 6
|
57
tests/lean/interactive/overload_coercion.input.expected.out
Normal file
57
tests/lean/interactive/overload_coercion.input.expected.out
Normal file
|
@ -0,0 +1,57 @@
|
|||
-- BEGINWAIT
|
||||
-- ENDWAIT
|
||||
-- BEGININFO
|
||||
-- TYPE|5|6
|
||||
ℕ
|
||||
-- ACK
|
||||
-- IDENTIFIER|5|6
|
||||
a
|
||||
-- ACK
|
||||
-- TYPE|5|8
|
||||
ℕ → ℕ → ℕ
|
||||
-- ACK
|
||||
-- OVERLOAD|5|8
|
||||
num.add #1 #0
|
||||
--
|
||||
nat.add #1 #0
|
||||
-- ACK
|
||||
-- SYMBOL|5|8
|
||||
+
|
||||
-- ACK
|
||||
-- IDENTIFIER|5|8
|
||||
nat.add
|
||||
-- ACK
|
||||
-- TYPE|5|10
|
||||
num
|
||||
-- ACK
|
||||
-- COERCION|5|10
|
||||
of_num b
|
||||
--
|
||||
ℕ
|
||||
-- ACK
|
||||
-- IDENTIFIER|5|10
|
||||
b
|
||||
-- ACK
|
||||
-- ENDINFO
|
||||
-- BEGININFO STALE
|
||||
-- TYPE|6|6
|
||||
ℕ → ℕ → ℕ
|
||||
-- ACK
|
||||
-- OVERLOAD|6|6
|
||||
num.add
|
||||
--
|
||||
nat.add
|
||||
-- ACK
|
||||
-- TYPE|6|10
|
||||
ℕ
|
||||
-- ACK
|
||||
-- IDENTIFIER|6|10
|
||||
a
|
||||
-- ACK
|
||||
-- TYPE|6|12
|
||||
bool
|
||||
-- ACK
|
||||
-- IDENTIFIER|6|12
|
||||
c
|
||||
-- ACK
|
||||
-- ENDINFO
|
Loading…
Reference in a new issue