aboutsummaryrefslogtreecommitdiff
path: root/spec/04-term_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/04-term_spec.lua')
-rw-r--r--spec/04-term_spec.lua20
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()
99print"1"
100package.loaded["system"] = nil
101package.loaded["system.core"] = nil
102print"2"
103local system = require "system"
104print"3"
105for k,v in pairs(system) do print(k,v) end
106for 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)
94end) 114end)