summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/test
diff options
context:
space:
mode:
authorFrederick John Milens III <[email protected]>2013-08-22 16:37:42 -0500
committerFrederick John Milens III <[email protected]>2013-08-22 16:37:42 -0500
commitde5f5732fe222858e629f62aedaf6d32d14f167d (patch)
treeecea36fb1b42722d0acc1c957bb046e333d35a4a /mrbgems/mruby-string-ext/test
parentaa099f7f7d1f8c61db936fb7c39a3c734175af16 (diff)
downloadmruby-de5f5732fe222858e629f62aedaf6d32d14f167d.tar.gz
mruby-de5f5732fe222858e629f62aedaf6d32d14f167d.zip
Added test case for String#start_with? with string of length 1.
Diffstat (limited to 'mrbgems/mruby-string-ext/test')
-rw-r--r--mrbgems/mruby-string-ext/test/string.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-string-ext/test/string.rb b/mrbgems/mruby-string-ext/test/string.rb
index 9eb6f6aaa..79e4360b5 100644
--- a/mrbgems/mruby-string-ext/test/string.rb
+++ b/mrbgems/mruby-string-ext/test/string.rb
@@ -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