aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/04-term_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/04-term_spec.lua b/spec/04-term_spec.lua
index c5b91e6..50fba45 100644
--- a/spec/04-term_spec.lua
+++ b/spec/04-term_spec.lua
@@ -246,7 +246,7 @@ describe("Terminal:", function()
246 flags.iflag = 0 246 flags.iflag = 0
247 assert.has.error(function() 247 assert.has.error(function()
248 system.tcsetattr(io.stdin, system.TCSANOW, flags) 248 system.tcsetattr(io.stdin, system.TCSANOW, flags)
249 end, "bad argument #3 to 'tcsetattr' (table expected, got number)") 249 end, "bad argument #3, field 'iflag' must be a bitflag object")
250 end) 250 end)
251 251
252 252
@@ -255,7 +255,7 @@ describe("Terminal:", function()
255 flags.oflag = 0 255 flags.oflag = 0
256 assert.has.error(function() 256 assert.has.error(function()
257 system.tcsetattr(io.stdin, system.TCSANOW, flags) 257 system.tcsetattr(io.stdin, system.TCSANOW, flags)
258 end, "bad argument #3 to 'tcsetattr' (table expected, got number)") 258 end, "bad argument #3, field 'oflag' must be a bitflag object")
259 end) 259 end)
260 260
261 261
@@ -264,7 +264,7 @@ describe("Terminal:", function()
264 flags.lflag = 0 264 flags.lflag = 0
265 assert.has.error(function() 265 assert.has.error(function()
266 system.tcsetattr(io.stdin, system.TCSANOW, flags) 266 system.tcsetattr(io.stdin, system.TCSANOW, flags)
267 end, "bad argument #3 to 'tcsetattr' (table expected, got number)") 267 end, "bad argument #3, field 'lflag' must be a bitflag object")
268 end) 268 end)
269 269
270 end) 270 end)