Modified: MacRuby/branches/experimental/test_roxor.rb (1285 => 1286)
--- MacRuby/branches/experimental/test_roxor.rb 2009-04-01 12:26:52 UTC (rev 1285)
+++ MacRuby/branches/experimental/test_roxor.rb 2009-04-01 12:49:35 UTC (rev 1286)
@@ -1500,6 +1500,15 @@
assert "true", "p(Dir['*.c'].length > 1)"
assert "true", "p(Dir.glob('*.c').length > 1)"
assert '', "#!ruby\n;" # fails because of a bug in ungetc that makes ruby read "!\n;"
+ assert '"abcdef"', %{
+ f = File.open('#{__FILE__}')
+ f.ungetc("\n")
+ f.ungetc("f")
+ f.ungetc("de")
+ f.ungetc("c")
+ f.ungetc("ab")
+ p f.gets.strip
+ }
end