Files
wren/test
Bob Nystrom 250a855d82 fix: return null from IO.read on EOF instead of empty string
Previously, IO.read would return an empty string when stdin reached EOF because it always called wrenReturnString with the buffer, even when fgets returned NULL. Now it returns null by only calling wrenReturnString when fgets succeeds, and adds a test case verifying that IO.read returns null on EOF.
2015-03-07 21:47:07 +00:00
..