require 'test/unit' class Test::Unit::TestCase def assert_vooly(vooly, output, param=" ") IO.popen("vooly_test #{param.to_s.upcase[0..0]}", "w+") { |io| io.write vooly io.close_write assert_equal output, io.read } end end class VoolyCTest < Test::Unit::TestCase def test_empty assert_vooly "", ".: '(null)'\n" end DOCUMENT = <> <