Commit Graph

549 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto adea2ca371 Merge pull request #2223 from yui-knk/fix-nameerror
Delete unused NameError#new. And add test.
2014-05-10 13:11:00 +09:00
Yukihiro "Matz" Matsumoto e59c6a1100 Merge pull request #2226 from yui-knk/hash-merge-error
Change to raise TypeError (Hash#merge, #merge!)
2014-05-10 11:14:55 +09:00
yui-knk 658a00ba49 Change to raise TypeError (Hash#merge, #merge!) 2014-05-10 10:18:15 +09:00
ksss 7dbfe19fc6 OP_ENTER fix segmentation fault 2014-05-10 09:43:32 +09:00
yui-knk 1a00a34cc2 Delete unused NameError#new. And add test. 2014-05-10 01:12:52 +09:00
Yukihiro "Matz" Matsumoto e07a3731d1 Merge pull request #2221 from yui-knk/add-exception-test
Add exception test
2014-05-10 00:48:44 +09:00
Yukihiro "Matz" Matsumoto 7f899d7752 Merge pull request #2222 from take-cheeze/remove_proc_meth
Remove use of mruby-proc-ext method in core test.
2014-05-10 00:47:43 +09:00
Yukihiro "Matz" Matsumoto c302b86fa0 Merge pull request #2220 from yui-knk/refactor-test
Refactoring test to use assert_nothing_raised.
2014-05-10 00:46:22 +09:00
yui-knk 8b6bfd1a25 Add assert to Exception#inspect test. 2014-05-10 00:07:20 +09:00
take_cheeze 9a5ef1a127 Remove use of mruby-proc-ext method. 2014-05-10 00:07:03 +09:00
yui-knk faee698746 Refactoring test to use assert_nothing_raised. 2014-05-09 23:40:41 +09:00
take_cheeze d0c0beb880 Move __method__ to mruby-kernel-ext since it's not ISO method. 2014-05-09 22:44:10 +09:00
Yukihiro "Matz" Matsumoto b8e524bb9e Merge pull request #2214 from ksss/proc-clear
OP_ENTER clean block object in register
2014-05-09 12:00:53 +09:00
Yukihiro "Matz" Matsumoto 78f2d283a7 Merge pull request #2215 from yui-knk/fix-typo-test
Add ISO No. to String#inspect test.
2014-05-09 12:00:25 +09:00
yui-knk 6932e9e142 Add ISO No. to String#inspect test. 2014-05-09 08:43:39 +09:00
ksss 06a67df950 OP_ENTER clean block object in register 2014-05-09 08:04:36 +09:00
yui-knk 60d2b51cc0 Add tests for Range#to_s Range#inspect. 2014-05-08 23:50:11 +09:00
yui-knk aac3992195 fix typo 2014-05-08 13:55:30 +09:00
yui-knk eafc4dd0af Make Array#[]= raise IndexError.
If second param is negative, Array#[] raise IndexError.
2014-05-08 00:17:17 +09:00
ksss 0c3226db04 OP_ENTER fix variable assignment 2014-05-06 23:30:02 +09:00
yui-knk ff90bb1c18 Refactoring exception test.
Change to use assert_equal explicitly.
2014-05-05 09:52:29 +09:00
Nobuyoshi Nakada 8b13efc26d count skipped line numbers 2014-05-03 08:42:32 +09:00
Nobuyoshi Nakada cf3b880df6 skip to the next line and reset column after =end 2014-05-03 08:42:31 +09:00
Nobuyoshi Nakada 854ae564a3 fix embedded documents
tabs are allowed after `=begin` and `=end`.
raise `SyntaxError` if no =end is found.
2014-05-03 08:42:31 +09:00
Nobuyoshi Nakada ab67c57f65 remove trailing spaces 2014-04-30 09:50:14 +09:00
Carson McDonald 9ac817ae78 Add tests for multiline comment parsing 2014-04-28 14:22:55 -04:00
mirichi d97ab343bd add post mandatory argument test 2014-04-28 09:37:45 +09:00
cremno 9dd28c96bb tests should not depend on mruby-proc-ext 2014-04-21 08:09:52 +02:00
Nobuyoshi Nakada ac6747a9c5 fix optional block arguments in rhs
define optional block arguments as argument variables in the rhs
default expressions, as same as mere assignment expressions.

Import ruby/ruby@01740f0c27
2014-04-21 14:55:06 +09:00
Nobuyoshi Nakada 367118b1b6 fix optional arguments in rhs
define optional arguments as argument variables in the rhs default
expressions, as same as mere assignment expressions.

Import ruby/ruby@01740f0c27
2014-04-21 10:48:00 +09:00
Nobuyoshi Nakada 9eaddfab44 allow method definition in cmdarg
save cmdarg_stack and isolate command argument state from outer scope
to allow method definition in cmdarg

import from ruby/ruby@04bb9d6b75
2014-04-21 07:00:57 +09:00
Nobuyoshi Nakada b16697982e Allow parenthesed do-block in cmdarg
Flush cmdarg flags inside left-paren in a command argument, to allow
parenthesed `do-block` as an argument without arguments parentheses.
`CMDARG_PUSH(0)` for tLPAREN_ARG is before `CMDARG_PUSH(1)` in
`command_args` due to look-ahead.
2014-04-19 18:46:07 +09:00
Yukihiro "Matz" Matsumoto 9002fb7946 Merge pull request #2018 from akuroda/pr_false_test
add tests for FalseClass
2014-04-06 20:15:15 +09:00
Tomoyuki Sahara 8df73d250b remove tests for unicode chars in regular expression literals.
mruby does not parse escape characters in a regular expression
literal (ref #2007).  It is parsed by the external mrbgem that
provides Regexp class, if any.  These tests should not be in
mruby core but in the mrbgem.
2014-04-06 17:13:29 +09:00
Akira Kuroda 0eee513a47 add tests for FalseClass
reorder and add tests for 15.2.6.1
2014-04-06 11:48:38 +09:00
kyab 0ad9b900a5 Fix 'make test' fail to build on Windows(MSVC) 2014-04-05 19:28:48 +09:00
Yukihiro "Matz" Matsumoto 59cd24d41f Hash#replace should copy default as well; close #2004 2014-04-04 12:14:23 +09:00
Yukihiro "Matz" Matsumoto 8cfd5f17da merge test code from #2003 2014-04-04 11:06:11 +09:00
kyab ad6fa200e2 Fix build fail for 'make test' with no mrbgems 2014-04-03 19:39:25 +09:00
ksss 15eabcdbc4 Show error class name when raise Error 2014-03-31 08:14:14 +09:00
take_cheeze 98e49ebd7c Use mrb_intern_lit instead of mrb_intern in test driver. 2014-03-29 11:08:40 +09:00
ksss f0dd4cb673 Implement Kernel#define_singleton_method 2014-03-28 18:16:28 +09:00
take_cheeze 2239350348 Add test for backquote.
* Implement code generation of NODE_DXSTR.
* Fix NOVAL NODE_XSTR.
2014-03-28 13:02:52 +09:00
Yukihiro "Matz" Matsumoto be58f1c9ab add Numeric#/ tests; ref #1965 2014-03-28 11:05:53 +09:00
ksss 65ace4e027 Implement Kernel#__method__ 2014-03-27 18:25:47 +09:00
Yukihiro "Matz" Matsumoto 9434506035 allow underscores in integer literals; close #1960 2014-03-27 12:33:32 +09:00
Yukihiro "Matz" Matsumoto 1b422befb1 revert 813ba5 since #1949 fixed 2014-03-26 17:53:22 +09:00
take_cheeze 813ba50bfb Don't use ensure to fix crash of mruby-eval test. 2014-03-26 12:59:56 +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