rubyx/test/rubyx/test_rubyxc.rb
Torsten Rüger 1ee01622c3 Builtin is no more, final conversions done
All preloading where it needs to be
(some)tests for the preload
split compiler test
remembered binary tests (usually just run on travis)
2019-09-13 20:34:41 +03:00

18 lines
424 B
Ruby

require_relative "helper"
require "rubyx/rubyxc"
module RubyX
class TestRubyXCli < MiniTest::Test
def test_invoke_without_not_work
assert_output(nil , /not find/) {RubyXC.start(["list"])}
end
def test_invoke_compile_works
assert_output( "") {RubyXC.start(["compile" ])}
end
def test_file_fail
assert_output(nil , /No such file/) {RubyXC.start(["compile" , "hi"])}
end
end
end