diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-26 04:17:20 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-26 04:17:20 -0700 |
| commit | 91b878e5dfa671b63c26019962736dda1a58f9fc (patch) | |
| tree | 1045a9cfeb500bb58cea6a787c1bf7efe88a630e /mrbgems/mruby-string-ext/test/string.rb | |
| parent | b11ae3fddbda288effeaa74c6fe5e6880f028af0 (diff) | |
| parent | d682be9d328227aff3597ddb40cb21ecb5816f1d (diff) | |
| download | mruby-91b878e5dfa671b63c26019962736dda1a58f9fc.tar.gz mruby-91b878e5dfa671b63c26019962736dda1a58f9fc.zip | |
Merge pull request #1485 from fjmilens3/string_end_with
Bug in String#end_with? resulting from incorrect length determination
Diffstat (limited to 'mrbgems/mruby-string-ext/test/string.rb')
| -rw-r--r-- | mrbgems/mruby-string-ext/test/string.rb | 1 |
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 79e4360b5..6bd868993 100644 --- a/mrbgems/mruby-string-ext/test/string.rb +++ b/mrbgems/mruby-string-ext/test/string.rb @@ -110,4 +110,5 @@ 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") end |
