summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/test/string.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-09-19 21:54:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-09-19 22:02:46 +0900
commit6d1728822d575812cbc0c5c3e181ac0031a75914 (patch)
tree7ef1ac2a274bf05586bcde2300514c6505483341 /mrbgems/mruby-string-ext/test/string.rb
parente207d5af43e9d6e09679e9aee9bf00a843528e0e (diff)
downloadmruby-6d1728822d575812cbc0c5c3e181ac0031a75914.tar.gz
mruby-6d1728822d575812cbc0c5c3e181ac0031a75914.zip
Removed `String#try_convert` method from `mruby-string-ext` gem.
Because `try_convert` method rarely used in production. For mruby users, we have `__to_str` utility method to check string type.
Diffstat (limited to 'mrbgems/mruby-string-ext/test/string.rb')
-rw-r--r--mrbgems/mruby-string-ext/test/string.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/mrbgems/mruby-string-ext/test/string.rb b/mrbgems/mruby-string-ext/test/string.rb
index 024b2cd4b..b44e8181a 100644
--- a/mrbgems/mruby-string-ext/test/string.rb
+++ b/mrbgems/mruby-string-ext/test/string.rb
@@ -4,13 +4,6 @@
UTF8STRING = ("\343\201\202".size == 1)
-assert('String.try_convert') do
- assert_nil String.try_convert(nil)
- assert_nil String.try_convert(:foo)
- assert_equal "", String.try_convert("")
- assert_equal "1,2,3", String.try_convert("1,2,3")
-end
-
assert('String#getbyte') do
str1 = "hello"
bytes1 = [104, 101, 108, 108, 111]