Added test case for String#start_with? with string of length 1.

parent aa099f7f
......@@ -104,6 +104,7 @@ end
assert('String#start_with?') do
assert_true "hello".start_with?("heaven", "hell")
assert_true !"hello".start_with?("heaven", "paradise")
assert_true !"h".start_with?("heaven", "hell")
end
assert('String#end_with?') do
......
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