Skip to content

Commit

Permalink
test: improve test name
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 28, 2020
1 parent 8d47088 commit 89350e0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test-assertions.rb
Expand Up @@ -956,20 +956,20 @@ def test_assert_not_match_pass_with_message
end
end

def test_assert_not_match_pass_not_regexp
check_fail("</asdf/> was expected to not match\n" +
"<\"asdf\">.") do
assert_not_match("asdf", "asdf")
end
end

def test_assert_not_match_fail_match
check_fail("</string/> was expected to not match\n" +
"<\"string\">.") do
assert_not_match(/string/, "string")
end
end

def test_assert_not_match_fail_match_string
check_fail("</asdf/> was expected to not match\n" +
"<\"asdf\">.") do
assert_not_match("asdf", "asdf")
end
end

def test_assert_not_match_fail_match_with_message
check_fail("message.\n" +
"</string/> was expected to not match\n" +
Expand Down

0 comments on commit 89350e0

Please sign in to comment.