Permalink
Browse files

working...

  • Loading branch information...
1 parent c4a2839 commit 70a4254a240390c38f680f371fd9b8e08804585b Danish Khan committed Mar 23, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 koans/about_regular_expressions.rb
@@ -90,21 +90,21 @@ def test_shortcut_character_classes_are_negated_with_capitals
# ------------------------------------------------------------------
def test_slash_a_anchors_to_the_start_of_the_string
- assert_equal __, "start end"[/\Astart/]
- assert_equal __, "start end"[/\Aend/]
+ assert_equal "start", "start end"[/\Astart/]
+ assert_equal nil, "start end"[/\Aend/]
end
def test_slash_z_anchors_to_the_end_of_the_string
- assert_equal __, "start end"[/end\z/]
- assert_equal __, "start end"[/start\z/]
+ assert_equal "end", "start end"[/end\z/]
+ assert_equal nil, "start end"[/start\z/]
end
def test_caret_anchors_to_the_start_of_lines
- assert_equal __, "num 42\n2 lines"[/^\d+/]
+ assert_equal "2", "num 42\n2 lines"[/^\d+/]
end
def test_dollar_sign_anchors_to_the_end_of_lines
- assert_equal __, "2 lines\nnum 42"[/\d+$/]
+ assert_equal "42", "2 lines\nnum 42"[/\d+$/]
end
def test_slash_b_anchors_to_a_word_boundary

0 comments on commit 70a4254

Please sign in to comment.