test(lua): reactivate some of the Lua unit tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
49e626a0e0
commit
a6116e3156
53 changed files with 9 additions and 11 deletions
|
@ -67,14 +67,14 @@ install(TARGETS lean DESTINATION bin)
|
|||
# COMMAND "../test_single.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean -t" ${T_NAME})
|
||||
# ENDFOREACH(T)
|
||||
|
||||
# # LEAN LUA TESTS
|
||||
# file(GLOB LEANLUATESTS "${LEAN_SOURCE_DIR}/../tests/lua/*.lua")
|
||||
# FOREACH(T ${LEANLUATESTS})
|
||||
# GET_FILENAME_COMPONENT(T_NAME ${T} NAME)
|
||||
# add_test(NAME "leanluatest_${T_NAME}"
|
||||
# WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lua"
|
||||
# COMMAND "./test_single.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean -t" ${T_NAME})
|
||||
# ENDFOREACH(T)
|
||||
# LEAN LUA TESTS
|
||||
file(GLOB LEANLUATESTS "${LEAN_SOURCE_DIR}/../tests/lua/*.lua")
|
||||
FOREACH(T ${LEANLUATESTS})
|
||||
GET_FILENAME_COMPONENT(T_NAME ${T} NAME)
|
||||
add_test(NAME "leanluatest_${T_NAME}"
|
||||
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lua"
|
||||
COMMAND "./test_single.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean -t" ${T_NAME})
|
||||
ENDFOREACH(T)
|
||||
|
||||
# # LEAN DOCS
|
||||
# file(GLOB LEANDOCS "${LEAN_SOURCE_DIR}/../doc/lean/*.md")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local m = splay_map()
|
||||
local m = rb_map()
|
||||
for i = 1, 100 do
|
||||
m:insert(i, i * 3)
|
||||
end
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
assert(not pcall(function() name(mpz(10)) end))
|
||||
assert(not pcall(function() name(function() return 1 end) end))
|
||||
assert(Const{"x", name("y", 1), 1}:fields() == name("x", "y", 1, 1))
|
||||
assert(not pcall(function() Const({"x", function() return 1 end}) end))
|
||||
assert(name("x", 1):hash() == name("x", 1):hash())
|
||||
|
|
Loading…
Reference in a new issue