lean2/tests/lua/old/io_state1.lua
Leonardo de Moura a6116e3156 test(lua): reactivate some of the Lua unit tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-04-29 10:36:57 -07:00

9 lines
297 B
Lua

local ios = io_state()
assert(is_io_state(ios))
ios:print(Const("a"), Const("b"))
print(ios:get_options())
assert(is_formatter(ios:get_formatter()))
ios:set_options(options({"pp", "unicode"}, false))
print(ios:get_options())
ios:print_diagnostic("warning")
ios:print_diagnostic(ios:get_options())