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-11-19 12:08:28 +0900
commitb5d43a16a38d522aa1d1d1a889585749a6b8086d (patch)
treef216c0da801dd084fa3f0a72933d6d4ac1ff39ec /mrbgems/mruby-string-ext/test/string.rb
parentff08856fe314faa4d16b4502c0960a3475387846 (diff)
downloadmruby-b5d43a16a38d522aa1d1d1a889585749a6b8086d.tar.gz
mruby-b5d43a16a38d522aa1d1d1a889585749a6b8086d.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 4ccdfd6c3..7c96ab694 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]