diff options
Diffstat (limited to 'spec/04-term_spec.lua')
-rw-r--r-- | spec/04-term_spec.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/04-term_spec.lua b/spec/04-term_spec.lua index a2034aa..9ca37e9 100644 --- a/spec/04-term_spec.lua +++ b/spec/04-term_spec.lua | |||
@@ -91,4 +91,24 @@ describe("Terminal:", function() | |||
91 | 91 | ||
92 | end) | 92 | end) |
93 | 93 | ||
94 | |||
95 | |||
96 | describe("getconsoleflags()", function() | ||
97 | |||
98 | pending("returns the consoleflags, if called without flags", function() | ||
99 | print"1" | ||
100 | package.loaded["system"] = nil | ||
101 | package.loaded["system.core"] = nil | ||
102 | print"2" | ||
103 | local system = require "system" | ||
104 | print"3" | ||
105 | for k,v in pairs(system) do print(k,v) end | ||
106 | for k,v in pairs(debug.getinfo(system.isatty)) do print(k,v) end | ||
107 | |||
108 | local flags, err = system.getconsoleflags(io.stdin) | ||
109 | assert.is_nil(err) | ||
110 | assert.is_integer(flags) | ||
111 | end) | ||
112 | |||
113 | end) | ||
94 | end) | 114 | end) |