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
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