Tatsuhiko Kubo
effc44f265
Fix error handlings for mrb_open_core().
2014-08-20 05:48:09 +09:00
Kouhei Sutou
e75e2083fd
Fix a bug that class variable can't be referenced from class method
...
Class method defined in singleton class should be evaluated in class
context not singleton class context.
fix #2515
2014-08-09 15:06:17 +09:00
Yukihiro "Matz" Matsumoto
e2f7e485e7
Merge pull request #2478 from dreamedge/add_module_function
...
add Module#module_function
2014-07-26 09:35:58 +09:00
ksss
67fbcf8b2a
Fix memory leak for test driver
2014-07-23 14:14:09 +00:00
take_cheeze
a24729044a
Print backtrace of crashed test in verbose mode.
2014-07-19 22:33:13 +09:00
dreamedge
0b8a0f4bb4
add Module#module_function
2014-07-18 09:50:54 +09:00
take_cheeze
a9c52675e6
Set $mrbtest_verbose flag in mrb_init_test_driver.
2014-07-14 21:11:14 +09:00
take_cheeze
3b8a797a4c
Fix rake failure since mrbtest_objs isn't flattened.
...
Append generated test object to `@test_objs` of mrbgem spec.
Add method `custom_test_init?` to check whether mrbgem has custom test init function.
2014-07-12 21:41:44 +09:00
take_cheeze
03866f25f8
Run mrbgem and core tests on minimum dependencies.
...
Solves #2355 .
In test drivers:
* Uses `mrb_t_pass_result` to check and pass test result to main `mrb_state`.
* Adds `mrb_init_test_driver` to init test `mrb_state`.
2014-07-12 14:11:18 +09:00
Yukihiro "Matz" Matsumoto
023908afc2
remove unused return_value
2014-07-09 17:01:59 +09:00
take_cheeze
ab779b7ad8
Use mrb_print_error to print exception instead of mrb_p.
2014-07-08 22:25:32 +09:00
take_cheeze
5bb0a1fb5e
Print error instead of printing return value of report.
2014-07-08 22:24:35 +09:00
Yukihiro "Matz" Matsumoto
ba0ddb7819
fix conflict resolution mistake
2014-06-19 01:55:39 +09:00
Yukihiro "Matz" Matsumoto
a47cc0c211
resolve conflict
2014-06-18 23:44:24 +09:00
Yukihiro "Matz" Matsumoto
42f5b741ea
remove superclass test for classes that do not exist in mruby (core)
2014-06-18 15:54:43 +09:00
take_cheeze
77047b5ed4
Test all ISO defined classes direct superclass except Object class.
...
Move mrbgems ISO direct superclass test to `superclass.rb`.
Skips test if class isn't defined.
Close #2332 .
2014-06-15 17:07:01 +09:00
take_cheeze
ec5b055694
Move direct superclass checking to test/t/superclass.rb.
2014-06-15 15:02:21 +09:00
ksss
bd53818999
str_replace: self should not be shared and nofree
2014-06-11 14:42:18 +00:00
Yukihiro "Matz" Matsumoto
6459a98448
move String#clear to mruby-string-ext; ref #2370
2014-06-07 22:28:42 +09:00
Jun Hiroe
9709fe79a3
Implement String#clear
2014-06-07 16:15:32 +09:00
take_cheeze
fb3c2f6b08
Add generator script to dependency so that it will regenerate C codes when it's modified.
2014-06-04 22:53:36 +09:00
take_cheeze
acec9d1ff1
Implement NoMethodError#args.
2014-06-02 22:38:02 +09:00
Yukihiro "Matz" Matsumoto
35d4137da1
remove part of 9cd71916 test for same reason as 5306e47
2014-06-01 02:51:04 +09:00
Yukihiro "Matz" Matsumoto
84116c26c9
Merge pull request #2320 from yui-knk/test-enumerable
...
Replace assert_true with assert_equal.
2014-05-25 22:38:25 +09:00
Yukihiro "Matz" Matsumoto
77942f70a5
Merge pull request #2316 from ksss/test-exception
...
Exception#exception fix test
2014-05-25 22:37:10 +09:00
Yukihiro "Matz" Matsumoto
7c30097183
Merge pull request #2315 from suzukaze/fix-test-proc
...
Fix assert_equal argument order in test/t/proc.rb
2014-05-25 22:36:05 +09:00
yui-knk
83986e2636
Replace assert_true with assert_equal.
2014-05-25 20:19:41 +09:00
yui-knk
2f952a8f95
Change to use assert method.
2014-05-25 18:56:33 +09:00
yui-knk
6bdeebe3b0
fix typo.
2014-05-25 18:50:43 +09:00
ksss
bc0cf69a83
Exception#exception fix test
...
Exception.exception is not call Exception#exception.
Test for Exception#exception should call Exception#exception method.
2014-05-25 11:18:39 +09:00
Jun Hiroe
6a2eced74e
Fix assert_equal argument order in test/t/proc.rb
2014-05-25 00:34:40 +09:00
Yukihiro "Matz" Matsumoto
fc557085d8
Merge pull request #2304 from ksss/class-new
...
Class.new do not call `class_eval'
2014-05-22 14:12:03 +09:00
ksss
1f3d7e939f
Class.new add test case
2014-05-22 00:11:40 +09:00
ksss
0bd8e48773
Module#initialize set created object
...
for block argument
2014-05-21 23:09:19 +09:00
yui-knk
756bfa6cd2
Correct comment in exception test.
2014-05-20 23:02:47 +09:00
Yukihiro "Matz" Matsumoto
929328ad3b
Merge pull request #2295 from ksss/module-initialize
...
Implement Module#initialize (15.2.2.4.31)
2014-05-20 16:22:11 +09:00
Yukihiro "Matz" Matsumoto
7195600dbf
Merge branch 'master' of github.com:mruby/mruby
2014-05-20 11:27:06 +09:00
Yukihiro "Matz" Matsumoto
4b6de9dea6
update raise in ensure test
2014-05-20 11:25:17 +09:00
Yukihiro "Matz" Matsumoto
3fc8f0435a
correct comment; ref #2297
2014-05-20 11:24:15 +09:00
Yukihiro "Matz" Matsumoto
b0477f1d3f
Merge branch 'add-exception-test' of https://github.com/yui-knk/mruby into yui-knk-add-exception-test
2014-05-20 11:22:49 +09:00
yui-knk
f55851cb74
Add 'Raise in rescue' test to exception.
2014-05-20 00:02:03 +09:00
take_cheeze
d8d07a2345
Move Kernel.local_variables to core.
2014-05-19 22:05:02 +09:00
ksss
ffbf90bdc8
Implement Module#initialize (15.2.2.4.31)
2014-05-19 19:28:42 +09:00
Carson McDonald
aa2e03cdf6
Add test for remove_instance_variable
2014-05-18 15:53:11 -04:00
ksss
464bbbddc7
instance method name use "#" instead of "." for assert
2014-05-18 10:54:23 +09:00
take_cheeze
49cf477688
Fix #2259 .
2014-05-16 19:58:36 +09:00
yui-knk
b9e9ce9237
Add ISO No. to Integer#divmod test.
2014-05-14 08:48:04 +09:00
yui-knk
681b932d98
Replace from include <>, to include "".
2014-05-13 23:30:58 +09:00
Yukihiro "Matz" Matsumoto
c12f64271a
fix overflow error like #2244 on MRB_WORD_BOXING
2014-05-13 23:15:44 +09:00
Yukihiro "Matz" Matsumoto
15a2003aeb
Merge pull request #2190 from cremno/mrbtest-mrb_int-constants
...
test fixnum overflow for add, sub and mul
2014-05-13 18:16:52 +09:00