Yukihiro "Matz" Matsumoto
2ce232144b
Merge pull request #1930 from chasonr/unicode-escape
...
Implement \u notation for strings and regexes.
2014-03-24 17:35:32 +09:00
Yukihiro "Matz" Matsumoto
53d6df3fdb
fix multiple value handling; ref #1931
2014-03-24 17:31:43 +09:00
Jun Hiroe
7e41e2ed0e
Enumerable#each_with_object
2014-03-24 16:26:23 +09:00
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
b8d7f1ce7a
Merge pull request #1928 from ksss/fix-typo
...
Hash#__update fix typo
2014-03-24 09:17:42 +09:00
Yukihiro "Matz" Matsumoto
4592862b0d
remove unnecessary operator method call; ref #1927
2014-03-24 09:17:09 +09:00
Yukihiro "Matz" Matsumoto
e2da53c60d
Merge pull request #1927 from take-cheeze/count_crash
...
Count crashed tests in total tests count.
2014-03-24 09:15:33 +09:00
ksss
2981b4e3d9
Hash#__update fix typo
...
It's called by create Hash of over 126 keys
2014-03-24 08:43:44 +09:00
take_cheeze
db5d78e229
Count crashed tests in total tests count.
2014-03-24 03:22:17 +09:00
Yukihiro "Matz" Matsumoto
75eed54bba
move conditional out of loop
2014-03-24 00:24:02 +09:00
Yukihiro "Matz" Matsumoto
d05635e252
Enumerable#one? to prune iteration when count > 1; ref #1926
2014-03-24 00:13:37 +09:00
Yukihiro "Matz" Matsumoto
2a771760be
Merge pull request #1926 from suzukaze/add-enum.one
...
Add Enumerable#one?
2014-03-24 00:08:01 +09:00
Jun Hiroe
919ca8f42b
Add Enumerable#one?
2014-03-23 23:47:03 +09:00
Yukihiro "Matz" Matsumoto
e2bab8c71b
Merge pull request #1925 from ksss/hash-reject
...
Hash#{reject,reject!} support return Enumerator
2014-03-23 22:54:18 +09:00
ksss
d9068f0583
Hash#{reject,reject!} fix yield value
2014-03-23 20:13:49 +09:00
ksss
d8fc05fcb9
Hash#{reject,reject!} support return Enumerator
2014-03-23 20:11:20 +09:00
ksss
b0f10b5c3d
mrb_str_pool use embed-string
2014-03-23 08:04:54 +00:00
Yukihiro "Matz" Matsumoto
81e0c30cc5
Merge pull request #1921 from cubicdaiya/issues/not_use_old_macro
...
Use MRB_ARGS_REST() instead of ARGS_REST()
2014-03-23 16:36:47 +09:00
Yukihiro "Matz" Matsumoto
9beef5fdb0
Merge pull request #1923 from ksss/hash-enumerator-select
...
Hash#{select,select!} support return Enumerator
2014-03-23 16:36:19 +09:00
Yukihiro "Matz" Matsumoto
85d20127a1
Merge pull request #1922 from suzukaze/add-enum.none
...
Add Enumerable.none?
2014-03-23 16:35:55 +09:00
ksss
d09e4475bf
Hash#{select,select!} fix yield value
2014-03-23 13:31:26 +09:00
ksss
5e4626c9ba
Hash#{select,select!} support return Enumerator
...
if non block given
2014-03-23 13:31:26 +09:00
Jun Hiroe
d8d47b80c3
Support multiple values in Enumerable#none?
2014-03-23 13:06:18 +09:00
Jun Hiroe
1f709c1ef0
Add Enumerable#none?
2014-03-23 12:58:12 +09:00
cubicdaiya
8f8c174fc2
Use MRB_ARGS_REST() instead of ARGS_REST()
...
According to include/mruby.h,
/* compatibility macros; will be removed */
#define ARGS_REST() MRB_ARGS_REST()
2014-03-23 12:48:34 +09:00
Yukihiro "Matz" Matsumoto
ff6666632f
Merge pull request #1920 from suzukaze/add-enum.minmax_by
...
Add Enumerable#minmax_by
2014-03-23 12:12:32 +09:00
Jun Hiroe
5b31ee9a2a
Suppoert multiple values in Enumerable#minmax_by
2014-03-23 11:48:46 +09:00
Jun Hiroe
776a680e89
Enumerable#minmax_by
2014-03-23 11:41:23 +09:00
Yukihiro "Matz" Matsumoto
bbee56f284
Merge pull request #1915 from suzukaze/add-enum.minmax
...
Add Enumerable#minmax
2014-03-23 02:13:06 +09:00
Yukihiro "Matz" Matsumoto
76b2ba886a
Merge pull request #1916 from ksss/hash-enumerator
...
Hash#each_{key,value} support return Enumerator if non block given
2014-03-23 02:11:54 +09:00
ksss
5386cd9b9b
Hash#each_{key,value} support return Enumerator
...
if non block given
2014-03-23 00:22:22 +09:00
Yukihiro "Matz" Matsumoto
539d9cb855
need not to add assertion in STR_SET_LEN() where n is mrb_int
2014-03-22 22:33:09 +09:00
Jun Hiroe
77291f3531
Support multiple values in Enumerable#minmax
2014-03-22 22:06:39 +09:00
Jun Hiroe
5027aaaf4e
Add Enumerable#minmax
2014-03-22 21:52:08 +09:00
Yukihiro "Matz" Matsumoto
7182ef6358
Merge pull request #1914 from stomar/struct-emsg
...
use the same error message
2014-03-22 18:46:10 +09:00
Yukihiro "Matz" Matsumoto
6b43f71b21
Merge pull request #1913 from take-cheeze/fiber_unnecessary_get_args
...
Remove unnecessary mrb_get_args in fiber_switch.
2014-03-22 18:45:02 +09:00
Marcus Stollsteimer
4f0a163842
use the same error message
2014-03-22 09:51:46 +01:00
take_cheeze
cad9648bde
remove unnecessary mrb_get_args in fiber_switch
2014-03-22 17:51:43 +09:00
Yukihiro "Matz" Matsumoto
5488da6c44
Merge pull request #1907 from ksss/float-round
...
Float#round fix bug for infinity and nan cases
2014-03-22 16:58:56 +09:00
Yukihiro "Matz" Matsumoto
064030732a
Merge branch 'master' of github.com:mruby/mruby
2014-03-22 16:56:43 +09:00
Yukihiro "Matz" Matsumoto
22d57105eb
add Enumerable#min_by as well; ref #1912
2014-03-22 16:55:47 +09:00
Yukihiro "Matz" Matsumoto
04b5e705e0
wrap expr with paren
2014-03-22 16:54:54 +09:00
Yukihiro "Matz" Matsumoto
ebb337b132
fix multiple value support of max_by; ref #1912
2014-03-22 16:47:56 +09:00
Yukihiro "Matz" Matsumoto
927bf68769
Merge pull request #1911 from cubicdaiya/issues/use_bool_macro
...
Use bool-macro instead of magic-number
2014-03-22 16:40:08 +09:00
Yukihiro "Matz" Matsumoto
2a1488756d
Merge pull request #1910 from take-cheeze/fiber_error
...
Use FiberError in vm.c.
2014-03-22 16:39:46 +09:00
Jun Hiroe
5ef1021d88
Support mulitple values in Enumerable#max_by
2014-03-22 14:51:47 +09:00
Jun Hiroe
af7db89aa3
Add Enumerable#max_by
2014-03-22 14:51:45 +09:00
cubicdaiya
51947f132b
Use bool-macro instead of magic-number
2014-03-22 09:55:48 +09:00
take_cheeze
f536492521
use FiberError in vm.c
2014-03-22 03:19:58 +09:00