diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-05-23 08:23:14 +0200 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-05-23 08:23:14 +0200 |
commit | 7e9447c98588730738724176d9acc595be6299e6 (patch) | |
tree | 7bec18966d7e4f4078a0be5cb6cf4f8db3dc5ece /spec | |
parent | b3cd71ddf2bbadb63fa4dc4ef1147b5c4ae95994 (diff) | |
download | luasystem-7e9447c98588730738724176d9acc595be6299e6.tar.gz luasystem-7e9447c98588730738724176d9acc595be6299e6.tar.bz2 luasystem-7e9447c98588730738724176d9acc595be6299e6.zip |
fix several tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/04-term_spec.lua | 6 |
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) |