cbmbasic: improve test

master
Jack Nagel 2013-03-24 23:59:52 -05:00
parent cc417a51ff
commit f594a81d22
1 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,11 @@ class Cbmbasic < Formula
bin.install 'cbmbasic'
end
def test
system "echo \"PRINT 1\" | #{bin}/cbmbasic"
test do
IO.popen("#{bin}/cbmbasic", "w+") do |pipe|
pipe.write("PRINT 1\n")
pipe.close_write
/READY.\r\n 1/ === pipe.read
end
end
end