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
|
Reference in New Issue
Block a user