get guard to run several test on one change by setting up names accordingly
This commit is contained in:
@ -21,5 +21,6 @@ module Vool
|
||||
assert_equal :foo , lst.name
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
16
test/vool/statements/test_local.rb
Normal file
16
test/vool/statements/test_local.rb
Normal file
@ -0,0 +1,16 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Vool
|
||||
class TestLocal < MiniTest::Test
|
||||
|
||||
def test_local
|
||||
lst = RubyCompiler.compile( "foo = bar")
|
||||
assert_equal LocalAssignment , lst.class
|
||||
end
|
||||
def test_local_name
|
||||
lst = RubyCompiler.compile( "foo = bar")
|
||||
assert_equal :foo , lst.name
|
||||
end
|
||||
|
||||
end
|
||||
end
|
@ -1,3 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "statements/test_all"
|
||||
require_relative "compilers/test_all"
|
||||
require_relative "to_mom/test_all"
|
||||
|
3
test/vool/to_mom/test_all.rb
Normal file
3
test/vool/to_mom/test_all.rb
Normal file
@ -0,0 +1,3 @@
|
||||
require_relative "helper"
|
||||
require_relative "test_local"
|
||||
require_relative "test_ivar_assignment"
|
@ -1,7 +1,7 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Vool
|
||||
class TestAssignemnt < MiniTest::Test
|
||||
class TestLocalMom < MiniTest::Test
|
||||
include CompilerHelper
|
||||
|
||||
def setup
|
Reference in New Issue
Block a user