chasonr
8162295ba2
Small correction to the test identification.
2014-03-23 22:31:49 -04:00
chasonr
509cbc51eb
Implement \u notation for strings and regexes.
...
This change adds the \u notation for double quoted strings and regular
expressions. It does not implement the \u notation for character literals.
Both the \uNNNN and \u{NNNN} notations are supported.
\uNNNN is implemented by emitting equivalent UTF-8; that is, "\u4000" is
equivalent to "\xE4\x80\x80".
Unlike CRuby, the \u{NNNN} notation allows only one character per pair of
braces; I see no way to lift this restriction without remodeling the parser.
2014-03-23 21:46:00 -04:00
Yukihiro "Matz" Matsumoto
4592862b0d
remove unnecessary operator method call; ref #1927
2014-03-24 09:17:09 +09:00
take_cheeze
db5d78e229
Count crashed tests in total tests count.
2014-03-24 03:22:17 +09:00
ksss
8891cea41c
Float#round fix bug for infinity and nan cases
2014-03-21 22:24:33 +09:00
ksss
72fe192259
Fix behavior of Comparable methods
...
when <=> return nil
2014-03-21 11:58:47 +09:00
Akira Kuroda
02406bc2e3
add tests for TrueClass
...
reorder and add tests for 15.2.5.1
2014-03-21 01:10:05 +09:00
Yukihiro "Matz" Matsumoto
cea951dc7a
Merge branch 'master' of github.com:mruby/mruby
2014-03-17 08:44:46 +09:00
Yukihiro "Matz" Matsumoto
446d721715
Merge pull request #1875 from akuroda/pr_nil_test
...
add unit tests for NilClass
2014-03-17 08:41:41 +09:00
Yukihiro "Matz" Matsumoto
75a4f1ac96
refactor Enumerable#{all?,any?} tests
2014-03-17 00:17:52 +09:00
Yukihiro "Matz" Matsumoto
0d82ada922
Merge pull request #1869 from suzukaze/add-test-enumerable.rb
...
Add test enumerable.rb
2014-03-17 00:15:51 +09:00
Yukihiro "Matz" Matsumoto
e4ae3bf661
Merge pull request #1871 from ksss/numeric-plus
...
fix bug when `0 + other object`
2014-03-17 00:14:42 +09:00
Yukihiro "Matz" Matsumoto
5140e27b5a
Merge pull request #1872 from ksss/numeric-mul
...
fix bug when `0 * other object`
2014-03-17 00:14:16 +09:00
Yukihiro "Matz" Matsumoto
777d460fb8
Merge pull request #1873 from suzukaze/refactor-assert.rb
...
Refactor assert_true
2014-03-17 00:13:45 +09:00
Akira Kuroda
395c0087d4
add unit tests for NilClass
2014-03-17 00:13:34 +09:00
ksss
0fab9d557e
float + nil should be raise TypeError
2014-03-16 23:39:58 +09:00
Jun Hiroe
d27dcbe9d2
Refactor assert_true
2014-03-16 23:26:29 +09:00
ksss
9dcce29749
fix bug when 0 * other object
2014-03-16 23:08:31 +09:00
ksss
e9f3dca0f4
fix bug when 0 + other object
2014-03-16 22:52:25 +09:00
Jun Hiroe
8ba04a09a9
Add Enumerable#any?(&block) tests
2014-03-16 18:58:39 +09:00
Jun Hiroe
cf556f0ad9
Add Enumerable#all?(&block) tests
2014-03-16 18:49:05 +09:00
Yukihiro "Matz" Matsumoto
b868ce8a77
Hash#shift may return any entries
2014-03-15 15:01:17 +09:00
ksss
23680cb447
add assertion method `assert_nothing_raised'
2014-03-11 00:13:36 +09:00
take_cheeze
77fba20480
reduce mrb_open calls in mrbgem test
2014-03-10 04:45:28 +09:00
Masaki Muranaka
5cf46db561
Add comments to notify files are auto generated.
2014-03-09 18:10:27 +09:00
ksss
d7b179475b
fix #1823
2014-03-08 17:51:21 +09:00
Yukihiro "Matz" Matsumoto
ac8d04fb6c
Merge pull request #1820 from ksss/string-embed
...
Embed small string
2014-03-07 18:51:32 +09:00
ksss
cab1f734ef
Fix behavior Hash#eql?
2014-03-07 11:08:24 +09:00
ksss
4bc19d5fad
add embed string test
2014-03-06 14:00:08 +00:00
ksss
54132e4364
make embed string when create literals
2014-03-06 13:47:51 +00:00
ksss
4070b5987a
embed small string
...
use flags 4 for *this object is embed*
use flags 8~64 for *embed string length*
2014-03-06 13:12:08 +00:00
cremno
3900fcecd7
__FILE__ test: add support for \ as separator
2014-03-05 17:38:02 +01: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
Tomoyuki Sahara
6e1f4695aa
add tests for Integer#divmod.
2014-03-04 10:51:56 +09:00
Tomoyuki Sahara
9686890ab3
Fix Float#divmod.
2014-03-04 10:51:36 +09:00
take_cheeze
cfa7889996
run enabled gem's bintest only
2014-03-03 16:53:26 +09:00
Akira Kuroda
8d6ce6bace
add tests for String#*
...
add test cases for 0 and -1
2014-03-02 12:19:57 +09:00
Yukihiro "Matz" Matsumoto
f5ec2115b5
swap actual and expected; ref #1764
2014-02-28 10:01:39 +09:00
ksss
a14a672915
fix test for Array#[]
2014-02-28 08:50:26 +09:00
Jun Hiroe
caa139f91a
Refactor tests in kernel.rb
2014-02-27 23:49:58 +09:00
Yukihiro "Matz" Matsumoto
56ebac0db2
Merge pull request #1751 from cubicdaiya/issues/test_for_instance_variable_defined_question
...
Add test for Kernel#instance_variable_defined?
2014-02-27 14:15:27 +09:00
Yukihiro "Matz" Matsumoto
630a152093
Merge pull request #1753 from take-cheeze/assert_rb
...
Compile assert.rb once.
2014-02-27 02:04:45 +09:00
cubicdaiya
677cd22be1
add test for Kernel#instance_variable_defined?
2014-02-26 22:44:22 +09:00
take_cheeze
7201404ee0
compile assert.rb once
2014-02-26 22:01:31 +09:00
take_cheeze
d31f824b5a
add test for __LINE__ and __FILE__
2014-02-26 21:11:33 +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
Li Yazhou
7ab0506795
add test for Hash#dup
2014-02-14 13:26:19 +08:00
Yukihiro "Matz" Matsumoto
d7960bf2a9
resolve conflict in travis_config.rb
2014-02-10 09:50:32 +09:00
Pavel
411168deab
Fix Kernel#global_variables for $1-$9
2014-02-09 23:54:49 +07:00