Evaluated each assert line without a replacement test specified.

This commit is contained in:
Jim Weirich
2010-09-27 13:38:50 -04:00
parent 012cb20bb3
commit 17fb071814
13 changed files with 53 additions and 47 deletions

View File

@@ -3,11 +3,11 @@ require File.expand_path(File.dirname(__FILE__) + '/edgecase')
class AboutRegularExpressions < EdgeCase::Koan
def test_a_pattern_is_a_regular_expression
assert_equal Regexp, /pattern/.class
assert_equal __(Regexp), /pattern/.class
end
def test_a_regexp_can_search_a_string_for_matching_content
assert_equal "match", "some matching content"[/match/]
assert_equal __("match"), "some matching content"[/match/]
end
def test_a_failed_match_returns_nil