make mom:method_compiler a list

Compilers forms alist by Util::CompilerList
Change Collection to use the list instead of array
This commit is contained in:
2019-09-28 12:41:38 +03:00
parent aba42a6836
commit 2eb9364283
16 changed files with 58 additions and 63 deletions

View File

@ -24,7 +24,7 @@ module Util
assert_equal :one , @compiler.last_compiler.name
end
def test_find_one
assert_equal :one , @compiler.find_compiler{|c| c.name == :one}.name
assert_equal :one , @compiler.find_compiler{|c| c.name == :one}.name
end
end
class TestComplierListTwo < Minitest::Test
@ -42,23 +42,10 @@ module Util
def test_find_two
assert_equal :two , @compiler.find_compiler{|c| c.name == :two}.name
end
def test_each
all = []
@compiler.each_compiler{|c| all << c.name}
assert_equal [:one, :two] , all
end
end
end