Update.
This commit is contained in:
parent
735596fdf6
commit
4de99d477f
10
test/io/stdin/read_byte_closed.wren
vendored
Normal file
10
test/io/stdin/read_byte_closed.wren
vendored
Normal 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
10
test/io/stdin/read_line_closed.wren
vendored
Normal 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.
|
||||
Loading…
Reference in New Issue
Block a user