aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2024-05-23 09:14:09 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2024-05-23 09:14:09 +0200
commit399837108104b453b76603b9649d02987beb9090 (patch)
tree7c489e0f2eaa052fc869cc5dd6cf61f5245684c2
parent9f6958c429627190917f742f46a3ae60ed6e7ca0 (diff)
downloadluasystem-399837108104b453b76603b9649d02987beb9090.tar.gz
luasystem-399837108104b453b76603b9649d02987beb9090.tar.bz2
luasystem-399837108104b453b76603b9649d02987beb9090.zip
all done, but tcgetattr/tcsetattr tests, manual
-rw-r--r--spec/04-term_spec.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/04-term_spec.lua b/spec/04-term_spec.lua
index 3711900..e72a5ad 100644
--- a/spec/04-term_spec.lua
+++ b/spec/04-term_spec.lua
@@ -176,7 +176,8 @@ describe("Terminal:", function()
176 176
177 describe("tcgetattr()", function() 177 describe("tcgetattr()", function()
178 178
179 pending("gets the terminal flags", function() 179 nix_it("gets the terminal flags #manual", function()
180 assert.equal(true, false) -- implement this test still
180 end) 181 end)
181 182
182 183
@@ -208,8 +209,8 @@ describe("Terminal:", function()
208 209
209 describe("tcsetattr()", function() 210 describe("tcsetattr()", function()
210 211
211 pending("sets the terminal flags, if called with flags", function() 212 nix_it("sets the terminal flags, if called with flags #manual", function()
212 assert.equal(true, false) 213 assert.equal(true, false) -- implement this test still
213 end) 214 end)
214 215
215 216
@@ -234,7 +235,7 @@ describe("Terminal:", function()
234 end) 235 end)
235 236
236 237
237 it("returns an error if called with an invalid third argument", function() 238 it("returns an error if called with an invalid third argument #manual", function()
238 assert.has.error(function() 239 assert.has.error(function()
239 system.tcsetattr(io.stdin, system.TCSANOW, "invalid") 240 system.tcsetattr(io.stdin, system.TCSANOW, "invalid")
240 end, "bad argument #3 to 'tcsetattr' (table expected, got string)") 241 end, "bad argument #3 to 'tcsetattr' (table expected, got string)")