Added test case for String#end_with? with string of length 2.

parent aa099f7f
...@@ -109,4 +109,5 @@ end ...@@ -109,4 +109,5 @@ end
assert('String#end_with?') do assert('String#end_with?') do
assert_true "string".end_with?("ing", "mng") assert_true "string".end_with?("ing", "mng")
assert_true !"string".end_with?("str", "tri") assert_true !"string".end_with?("str", "tri")
assert_true !"ng".end_with?("ing", "mng")
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment