fix(tests/lean/interactive): do not compare output of trace using non-deterministic commands such as "WAIT ms"

This commit is contained in:
Leonardo de Moura 2015-01-30 09:45:20 -08:00
parent d98f04fd3a
commit 7c59c959db
4 changed files with 25 additions and 4 deletions

View file

@ -33,6 +33,7 @@ add_test(lean_unknown_file1 bash ${LEAN_SOURCE_DIR}/cmake/check_failure.sh "${CM
add_test(lean_unknown_file2 bash ${LEAN_SOURCE_DIR}/cmake/check_failure.sh "${CMAKE_CURRENT_BINARY_DIR}/lean" "boofoo.lua")
add_test(lean_server_trace ${CMAKE_CURRENT_BINARY_DIR}/lean --server-trace "${LEAN_SOURCE_DIR}/../tests/lean/interactive/consume_args.input")
add_test(lean_server_trace ${CMAKE_CURRENT_BINARY_DIR}/lean --server-trace "${LEAN_SOURCE_DIR}/../tests/lean/interactive/options_cmd.trace")
add_test(lean_server_trace ${CMAKE_CURRENT_BINARY_DIR}/lean --server-trace "${LEAN_SOURCE_DIR}/../tests/lean/interactive/commands.trace")
# LEAN TESTS
file(GLOB LEANTESTS "${LEAN_SOURCE_DIR}/../tests/lean/*.lean")

View file

@ -11,12 +11,11 @@ calc a + b + c = a + (b + c) : _
... = a + c + b : (!add.assoc)⁻¹
WAIT
CLEAR_CACHE
WAIT 100
WAIT
INFO 4
WAIT
INFO 4
FINDG 7 31
+assoc -symm
WAIT
SLEEP 20
SHOW

View file

@ -1,9 +1,8 @@
-- BEGINWAIT
-- ENDWAIT
-- BEGINWAIT
-- INTERRUPTED
-- ENDWAIT
-- BEGININFO NAY
-- BEGININFO
-- TYPE|4|13
Type₁
-- ACK

View file

@ -0,0 +1,22 @@
VISIT consume_args.lean
SYNC 9
import logic data.nat.basic
open nat eq.ops
definition a := true
theorem tst (a b c : nat) : a + b + c = a + c + b :=
calc a + b + c = a + (b + c) : _
... = a + (c + b) : {!add.comm}
... = a + c + b : (!add.assoc)⁻¹
WAIT
CLEAR_CACHE
WAIT 100
INFO 4
WAIT
INFO 4
FINDG 7 31
+assoc -symm
WAIT
SLEEP 20
SHOW