Tests for IO.read().

This commit is contained in:
Bob Nystrom
2015-01-11 21:47:29 -08:00
parent 7a7c7a8fad
commit 1d9445d9bc
8 changed files with 44 additions and 5 deletions
+1
View File
@@ -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
}