This commit is contained in:
retoor 2026-01-25 10:54:09 +01:00
parent 735596fdf6
commit 4de99d477f
2 changed files with 20 additions and 0 deletions

10
test/io/stdin/read_byte_closed.wren vendored Normal file
View File

@ -0,0 +1,10 @@
// retoor <retoor@molodetz.nl>
import "io" for Stdin
var fiber = Fiber.new {
Stdin.readByte()
}
var result = fiber.try()
System.print(fiber.error) // expect: Stdin was closed.

10
test/io/stdin/read_line_closed.wren vendored Normal file
View File

@ -0,0 +1,10 @@
// retoor <retoor@molodetz.nl>
import "io" for Stdin
var fiber = Fiber.new {
Stdin.readLine()
}
var result = fiber.try()
System.print(fiber.error) // expect: Stdin was closed.