Tests for IO.read().
This commit is contained in:
@@ -80,6 +80,7 @@ class IO {
|
||||
}
|
||||
|
||||
static read(prompt) {
|
||||
if (!(prompt is String)) Fiber.abort("Prompt must be a string.")
|
||||
IO.write(prompt)
|
||||
return IO.read
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user