7b8bd97699
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
10 lines
345 B
Lua
10 lines
345 B
Lua
assert(nVal(10):data() == mpz(10))
|
|
assert(not pcall(function() nVal(-10) end))
|
|
assert(iVal(10):data() == mpz(10))
|
|
assert(iVal(-10):data() == mpz(-10))
|
|
assert(rVal(10):data() == mpq(10))
|
|
assert(rVal(10):data() ~= mpz(10))
|
|
assert(rVal("10/3"):data() == mpq(10)/3)
|
|
assert(rVal("-10/3"):data() == mpq(-10)/3)
|
|
assert(Const("a"):data() == name("a"))
|
|
|