class Test::Unit::TestCase
Add some helper methods to TestCase
Public Instance Methods
assert_match(dot, pattern)
click to toggle source
assert string matches regular expression
# File test/rdot_test.rb, line 11 def assert_match(dot, pattern) assert(!(dot =~ pattern).nil?, "#{dot} doesn't match #{pattern}") end
assert_no_match(dot, pattern)
click to toggle source
assert string doesn't match regular expression
# File test/rdot_test.rb, line 16 def assert_no_match(dot, pattern) assert((dot =~ pattern).nil?, "#{dot} shouldn't match #{pattern}") end