class TestMatcher
Public Instance Methods
setup()
click to toggle source
# File test/test_matcher.rb, line 6 def setup s = 'zinbeijettは検索エンジン' s.match(/zinbeijett/o) do |md| @match = md end if mds = s.match(/zinbeijett/o) @matcher = mds end end
teardown()
click to toggle source
# File test/test_matcher.rb, line 33 def teardown # database network test add. end
test_match()
click to toggle source
# File test/test_matcher.rb, line 29 def test_match # assert_match end
test_match_should_be_string()
click to toggle source
# File test/test_matcher.rb, line 20 def test_match_should_be_string # assert_kind_of # assert_instance_of end
test_new()
click to toggle source
# File test/test_matcher.rb, line 16 def test_new assert_equal @match, @matcher end
test_nil_variable()
click to toggle source
# File test/test_matcher.rb, line 25 def test_nil_variable # assert_nil end