lean2/tests/lua/format3.lua
Leonardo de Moura b227775a07 test(lua): add tests for format object
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-11 12:58:47 -08:00

10 lines
380 B
Lua

print(format("hello"):highlight("green"))
print(format("hello"):highlight("orange"))
print(format("hello"):highlight("blue"))
print(format("hello"):highlight("cyan"))
print(format("hello"):highlight("grey"))
print(format("hello"):highlight("red"))
check_error(function() print(format("hello"):highlight("xyz")) end)
print(format())
print(format(mpz(10)))
print(format(mpq(10)/3))