Commit Graph

4764 Commits

Author SHA1 Message Date
Daniel Bovensiepen 7ae495cc9c Adapt for Float and Integer 2014-03-27 01:48:07 +08:00
Daniel Bovensiepen c96339769d Adapt TypeError Message for String to Integer Conversion.
MRI:
"str" * "3"
=> TypeError: no implicit conversion of String into Integer

mruby:
"str" * "3"
=> TypeError: String can't be coerced into int
2014-03-27 01:41:31 +08:00
Yukihiro "Matz" Matsumoto 6e1e728c51 Merge pull request #1952 from kyab/catchup_arduinodue
Catch up to latest Arduino IDE
2014-03-26 22:02:22 +09:00
kyab e87b2d3626 Catch up to latest Arduino IDE 2014-03-26 18:21:25 +09:00
Yukihiro "Matz" Matsumoto 1b422befb1 revert 813ba5 since #1949 fixed 2014-03-26 17:53:22 +09:00
Yukihiro "Matz" Matsumoto 67f1cfaffc Merge branch 'eval_test' of https://github.com/take-cheeze/mruby into take-cheeze-eval_test 2014-03-26 17:50:33 +09:00
Yukihiro "Matz" Matsumoto 28871b9d1f should not over process ensure clauses; close #1949 2014-03-26 17:49:27 +09:00
Yukihiro "Matz" Matsumoto 306b1d3c51 Merge pull request #1948 from monaka/pr-remove-unused-null-check
Remove redundant NULL checks.
2014-03-26 13:32:18 +09:00
take_cheeze 813ba50bfb Don't use ensure to fix crash of mruby-eval test. 2014-03-26 12:59:56 +09:00
take_cheeze f700346b44 Add tests for mruby-eval. 2014-03-26 12:59:17 +09:00
Masaki Muranaka dcff9012e3 Remove redundant NULL checks.
mrb_malloc causes an exception when memory was empty.
2014-03-26 11:21:20 +09:00
Yukihiro "Matz" Matsumoto 79ba1ed137 Merge branch 'master' of github.com:mruby/mruby 2014-03-26 01:09:17 +09:00
Yukihiro "Matz" Matsumoto bfd2a539ed add new function mrb_toplevel_run to prevent running through C function boudaries on exceptions; close #1942 2014-03-26 01:09:09 +09:00
Yukihiro "Matz" Matsumoto 2220fb2a91 Merge pull request #1946 from ksss/str-macro
Fix unnecessary string macro
2014-03-25 23:55:05 +09:00
Yukihiro "Matz" Matsumoto 76098d5e43 Merge pull request #1945 from cubicdaiya/issues/suitable_type3
Use mrb_int instead of int
2014-03-25 23:54:16 +09:00
ksss c82517862a Fix unnecessary string macro 2014-03-25 23:03:47 +09:00
cubicdaiya bf3f45fc70 Use mrb_int instead of int 2014-03-25 22:33:53 +09:00
Yukihiro "Matz" Matsumoto b042b951ce Enumerable#find_index to support multiple values 2014-03-25 19:07:32 +09:00
Yukihiro "Matz" Matsumoto 648059575d Merge pull request #1939 from suzukaze/add-enum.find_index
Enumerable#find_index
2014-03-25 16:27:10 +09:00
Yukihiro "Matz" Matsumoto 86e69334ba Merge pull request #1938 from cubicdaiya/issues/suitable_type2
Use mrb_int instead of int
2014-03-25 16:22:29 +09:00
Jun Hiroe 767ca3f76e Enumerable#find_index 2014-03-25 16:14:19 +09:00
cubicdaiya b7c3a7d181 Use mrb_int instead of int 2014-03-25 15:02:32 +09:00
Yukihiro "Matz" Matsumoto 896dc002ca use to_int to integer duck-type check 2014-03-25 12:29:29 +09:00
Yukihiro "Matz" Matsumoto 1e73181da9 Merge pull request #1937 from cubicdaiya/issues/mrb_int
Use mrb_int instead of int
2014-03-25 11:51:23 +09:00
Yukihiro "Matz" Matsumoto a043eb63ca Merge branch 'master' of github.com:mruby/mruby 2014-03-25 11:50:42 +09:00
Yukihiro "Matz" Matsumoto b4dd3564ef REnv uses obj->c as env link; no super 2014-03-25 11:50:11 +09:00
cubicdaiya 6e648d6382 Use mrb_int instead of int 2014-03-25 11:36:47 +09:00
Yukihiro "Matz" Matsumoto 650651e909 Merge pull request #1936 from ksss/pool-capa
mrb_str_pool add string capa
2014-03-25 11:27:07 +09:00
take_cheeze 8ae3c80fc3 Use mrb_int. 2014-03-25 11:08:54 +09:00
ksss ebf6da7e30 mrb_str_pool add string capa 2014-03-25 08:44:59 +09:00
take_cheeze e5922aa896 Implement ObjectSpace.each_object . 2014-03-25 08:32:50 +09:00
Yukihiro "Matz" Matsumoto 13f0f597c8 Merge pull request #1934 from ksss/safe-name
src/string.c RESIZE_CAPA use safe name variables
2014-03-25 00:01:57 +09:00
Yukihiro "Matz" Matsumoto d7d54b6e69 Fix Enumerable#cycle; ref #1933
* add multi value support
* `each` method may not rewind the sequence so that `cycle` should save elements
2014-03-24 23:58:21 +09:00
Yukihiro "Matz" Matsumoto 915b158e89 Merge pull request #1933 from suzukaze/add-enum.cycle
Add Enumerable#cycle
2014-03-24 23:49:01 +09:00
Yukihiro "Matz" Matsumoto aa5920aaae Enumerable#reverse_each should not rely on mruby-array-ext gem 2014-03-24 23:44:23 +09:00
ksss e6e462c07d src/string.c RESIZE_CAPA use safe name variables
This has a possibility of naming conflicts
2014-03-24 23:05:44 +09:00
Jun Hiroe 381f126f1b Add Enumerable#cycle 2014-03-24 20:24:23 +09:00
Yukihiro "Matz" Matsumoto c326ab877e improve Enumerable#reverse_each to be efficient 2014-03-24 18:39:06 +09:00
Yukihiro "Matz" Matsumoto 23610d5489 Merge pull request #1932 from suzukaze/add-enum.reverse_each
Add Enumerable#reverse_each
2014-03-24 18:31:20 +09:00
Jun Hiroe 70bbe9a894 Add Enumerable#reverse_each 2014-03-24 18:03:37 +09:00
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