test(lua/name): add missing tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
8a13df3ce1
commit
e693c2de01
1 changed files with 5 additions and 0 deletions
5
tests/lua/n5.lua
Normal file
5
tests/lua/n5.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
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