summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/test
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2013-08-26 23:20:22 +0900
committerTomoyuki Sahara <[email protected]>2013-08-26 23:20:22 +0900
commitf77dc2e6cb2c2ea21c6cca96f88d06acfbf30d17 (patch)
treebc0f3ab1cdb846fa004f6a19fc706492895a5a7d /mrbgems/mruby-string-ext/test
parent0e8efd4a218f3d235f88054f0d9d11f8bfdcfd33 (diff)
parent91b878e5dfa671b63c26019962736dda1a58f9fc (diff)
downloadmruby-f77dc2e6cb2c2ea21c6cca96f88d06acfbf30d17.tar.gz
mruby-f77dc2e6cb2c2ea21c6cca96f88d06acfbf30d17.zip
Merge branch 'mruby' into pr-typeerror-string-start-end-with
Conflicts: mrbgems/mruby-string-ext/src/string.c mrbgems/mruby-string-ext/test/string.rb
Diffstat (limited to 'mrbgems/mruby-string-ext/test')
-rw-r--r--mrbgems/mruby-string-ext/test/string.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-string-ext/test/string.rb b/mrbgems/mruby-string-ext/test/string.rb
index 496730a0e..3ab959437 100644
--- a/mrbgems/mruby-string-ext/test/string.rb
+++ b/mrbgems/mruby-string-ext/test/string.rb
@@ -104,11 +104,13 @@ 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")
assert_raise TypeError do "hello".start_with?(true) end
end
assert('String#end_with?') do
assert_true "string".end_with?("ing", "mng")
assert_true !"string".end_with?("str", "tri")
+ assert_true !"ng".end_with?("ing", "mng")
assert_raise TypeError do "hello".end_with?(true) end
end