50 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 6b3fd18262 clarify asserts to UTF-8 test suites; ref #2971 2015-10-01 19:32:29 +09:00
Yasuhiro Matsumoto 7ad75a4a19 fix tests 2015-09-30 13:08:11 +09:00
Yasuhiro Matsumoto d5f145076c chop with utf-8. fix #2967 2015-09-29 21:22:45 +09:00
Yukihiro "Matz" Matsumoto 798ec3aff4 UTF-8 string support in core
define MRB_UTF8_STRING (in mrbconf.h) to enable UTF-8 support.
2015-09-24 02:37:33 +09:00
Yukihiro "Matz" Matsumoto 6a06a3e48d String#rindex should no longer take integer argument 2015-09-23 01:06:26 +09:00
takahashim f1c23a0f75 support String#[]= with 3 args 2015-09-16 18:50:03 +09:00
Jun Hiroe 69e835cd0f Add String#freeze test 2015-08-27 21:44:56 +09:00
Tomoyuki Sahara 5dd2b8e16f gsub/sub supports back references in substitutes. fixes #2816.
This implementation is compatible with CRuby's String#gsub/sub
except \1 ... \9 and \+.  They are useless without Regexp library.
2015-06-08 17:32:14 +09:00
h2so5 05b00a14c5 String#[] should reject nil index 2014-12-17 14:01:39 +09:00
Robert Mosolgo 0133d9ac70 fix(String) String#[] accepts float; close #2650 #2651 2014-11-26 01:03:38 +09:00
take_cheeze ec5b055694 Move direct superclass checking to test/t/superclass.rb. 2014-06-15 15:02:21 +09:00
ksss bd53818999 str_replace: self should not be shared and nofree 2014-06-11 14:42:18 +00:00
Yukihiro "Matz" Matsumoto 6459a98448 move String#clear to mruby-string-ext; ref #2370 2014-06-07 22:28:42 +09:00
Jun Hiroe 9709fe79a3 Implement String#clear 2014-06-07 16:15:32 +09:00
yui-knk faee698746 Refactoring test to use assert_nothing_raised. 2014-05-09 23:40:41 +09:00
yui-knk 6932e9e142 Add ISO No. to String#inspect test. 2014-05-09 08:43:39 +09:00
Yukihiro "Matz" Matsumoto 9434506035 allow underscores in integer literals; close #1960 2014-03-27 12:33:32 +09:00
ksss 4bc19d5fad add embed string test 2014-03-06 14:00:08 +00:00
cubicdaiya ebe4711df8 fix off-by-one error in String#rindex(fixnum)
null-terminated string should not be included in search targets.
2014-03-04 21:58:47 +09:00
Akira Kuroda 8d6ce6bace add tests for String#*
add test cases for 0 and -1
2014-03-02 12:19:57 +09:00
Akira Kuroda 61523d0e4f fix the position of capitalize! and downcast!, and add test for upcase! 2014-02-22 00:43:12 +09:00
Akira Kuroda f6516526b5 add tests for String#capitalize! and String#downcase! 2014-02-22 00:19:29 +09:00
Tomoyuki Sahara 3b76aae4f0 fix ISO reference number of String#=~. 2014-01-10 12:01:24 +09:00
Jun Hiroe d4b2d0a912 I fix ISO No in String class in comparison with ISO_IEC_30170_2012(E)-Charactor_PDF_document.pdf 2013-08-11 21:15:01 +09:00
Jun Hiroe fdb27fd6bd I fix order of actual and expect test value in string.rb. 2013-08-02 23:05:34 +09:00
Carson McDonald 7be117df4c Fix string test for so that it works for int16 2013-07-17 09:42:48 -04:00
Daniel Bovensiepen cbc9c24fe1 Improve String Tests 2013-06-15 02:08:34 +08:00
Masaki Muranaka 433cb13e6d Add tests to make sure. As we do not use standard library for formatting. 2013-04-25 15:35:16 +09:00
Masaki Muranaka da4b3d1c2c Move regression test as String#dump is not in ther core but the mrbgems. 2013-04-25 15:28:25 +09:00
Tomoyuki Sahara b1114489ef a string may have a lot of non-printable chars. 2013-04-25 12:14:18 +09:00
Masaki Muranaka 4bb7243c2b Add comments: some methods is defined in mrbgems. 2013-04-02 11:43:35 +09:00
Akira Yumiyama f82bf1ab2c update String#gsub test 2013-02-20 00:03:40 +09:00
Yukihiro Matz Matsumoto b7da7cfee0 adopt String#gsub to fixed split behavior 2013-02-18 18:47:58 +09:00
Daniel Bovensiepen e8c0b61c0d String#gsub fix with last character 2013-02-17 12:13:46 +00:00
Yuichiro MASUI 0ee2c71b03 Added String#sub/sub! and String#gsub/gsub! 2013-02-12 16:10:35 +09:00
Masamitsu MURASE 72ae2150c7 Modify String#bytes.
It should return non-negative integer.
2012-12-19 23:54:00 +09:00
Tomoyuki Sahara b1f5840aef fix the issue String#slice with Range may return broken String. 2012-11-13 16:50:41 +09:00
Daniel Bovensiepen b9cf5045b7 Add Test for String#each_byte 2012-11-01 16:40:31 +08:00
Daniel Bovensiepen 8d9f5628ed Add Test for String#bytes 2012-11-01 16:24:52 +08:00
Daniel Bovensiepen cef52c73c3 Add Test Case for Issue #460 2012-09-10 23:33:22 +08:00
Yukihiro Matsumoto 30a062c165 String#split("") should split per character (byte for now) 2012-06-12 12:58:49 +09:00
Yukihiro Matsumoto 5937c29281 s.split(nil) should work like s.split() 2012-06-12 12:29:20 +09:00
Yukihiro Matsumoto 6987ba02f8 String#split now understands string sep 2012-06-12 09:51:10 +09:00
Masamitsu MURASE 46c9260305 Add test for slice of shared string. 2012-06-11 01:39:45 +09:00
Daniel Bovensiepen 0c2d74020a Add more superclass tests 2012-06-03 23:31:53 +08:00
Daniel Bovensiepen 6ec149c4e3 Add string test for string interpolation 2012-06-02 16:44:16 +08:00
Yukihiro Matsumoto 0009239f29 reimplement String#chomp 2012-05-31 16:29:47 +09:00
Daniel Bovensiepen 31e9705022 Add Test cases for Literals, Enumeration, Exceptions and clean line endings 2012-05-29 01:20:46 +08:00
Yukihiro Matsumoto 52b2d092d3 test t/*.rb spacing fix 2012-05-23 12:00:49 +09:00
Daniel Bovensiepen d45ecc3270 Complete ISO test cases for Hash, Range, String and Symbol 2012-05-19 23:18:42 +08:00