Commit Graph

303 Commits

Author SHA1 Message Date
Carson McDonald 01c0373fac Add undef var test 2013-06-08 11:10:41 -04:00
Ryan Scott 222918deae First implementation of ObjectSpace moved outside of gc.c 2013-05-17 07:21:33 +10:00
Ryan Scott 279fce05ae ObjectSpace.count_objects was incorrectly checking if an object was already freed. Amended the count_objects test to ensure the correct distinction 2013-05-12 19:49:56 +10:00
Ryan Scott 0d4227ac04 Implemented ObjectSpace.count_objects to count the number of allocated objects for each type 2013-05-12 18:42:21 +10:00
Daniel Bovensiepen 72f78316aa Move declaration of kernel to the beginning of the method 2013-05-08 21:20:35 +08:00
Daniel Bovensiepen 520b0f73bf Implement fallback print method for testing environment in case mruby-print GEM wasn't included. 2013-05-08 21:17:08 +08:00
Masaki Muranaka 71cc4e13bf Add more test cases for test coverage. 2013-05-08 13:22:35 +09:00
Carson McDonald 61c0b8f7df Adding a few more respond_to tests 2013-05-05 09:14:41 -04:00
Yukihiro "Matz" Matsumoto a092e41020 the receiver should be included in ancestors even when it's a singleton class 2013-04-30 00:51:31 +09:00
Masaki Muranaka 433cb13e6d Add tests to make sure. As we do not use standard library for formatting. 2013-04-25 15:35:16 +09:00
Masaki Muranaka da4b3d1c2c Move regression test as String#dump is not in ther core but the mrbgems. 2013-04-25 15:28:25 +09:00
Yukihiro "Matz" Matsumoto f0bea86437 Merge pull request #1211 from skandhas/pr-fix-Module-ancestors
fix the behavior of Module#ancestors
2013-04-24 21:56:03 -07:00
skandhas 8d778d9860 fix Module#ancestors and update test 2013-04-25 11:17:34 +08:00
Tomoyuki Sahara b1114489ef a string may have a lot of non-printable chars. 2013-04-25 12:14:18 +09:00
Carson McDonald 35f42c264e Remove unused variable 2013-04-21 08:22:40 -04:00
Yukihiro "Matz" Matsumoto 58b877c4a7 fix test to check class variables in superclasses 2013-04-20 22:59:35 +09:00
Carson McDonald 54e1ed20f9 Add a test for respond_to_missing? 2013-04-20 07:47:58 -04:00
Tomoyuki Sahara 7626508f62 catching NameError here is not desirable. 2013-04-17 13:25:36 +09:00
Tomoyuki Sahara 0f8969041a rollback stack before executing ensure clause. 2013-04-17 13:08:54 +09:00
h2so5 b1ffb3b3b8 Add Proc#arity 2013-04-16 16:03:36 +09:00
Yukihiro "Matz" Matsumoto ac005ea939 Merge branch 'master' of github.com:mruby/mruby 2013-04-10 01:43:00 +09:00
Yukihiro "Matz" Matsumoto 5306e4716e although I understand the intntion of 039679f1, consuming all memory in the test program is not a good idea 2013-04-09 13:39:25 +09:00
Masaki Muranaka 91db290412 Add a comment. Kernel#require is defined in the mrbgem. 2013-04-06 18:24:42 +09:00
Masaki Muranaka d1b131e2b0 Add some tests. 2013-04-06 18:22:42 +09:00
mattn 1541a61f5d Fix exit 2013-04-05 18:04:22 +09:00
Masaki Muranaka 0969a79e52 Add one more test for NameError#initialize. As we support NameError#name. 2013-04-04 16:27:27 +09:00
Masaki Muranaka ea93ac13fa Add test for NameError#name 2013-04-04 16:26:30 +09:00
Masaki Muranaka 4bb7243c2b Add comments: some methods is defined in mrbgems. 2013-04-02 11:43:35 +09:00
Masaki Muranaka c9e19913cf Add comments: eval method is defined in mrbgems. 2013-04-02 11:43:35 +09:00
Masaki Muranaka 39bf29411a Add "Comparable" to labels. 2013-04-02 11:43:35 +09:00
Masaki Muranaka e129a4c8ef Add test cases. 2013-04-02 11:43:30 +09:00
Kouki Ooyatsu 7e163c0567 bugfix: Kernel#!=, and add #!= testcase. 2013-04-01 12:18:19 +09:00
Yukihiro Matz Matsumoto a0f6e4d58e resolve conflict from #964 2013-03-27 00:52:24 +09:00
Masaki Muranaka ed2da91d12 Add stdio.h. This is just for now. We should discuss about remote tests later. 2013-03-24 15:19:56 +09:00
FUKUZAWA-Tadashi cdf8114e27 %I %i literal 2013-03-19 00:41:15 +09:00
FUKUZAWA-Tadashi 76c24894a7 bugfix about escaping '\n' 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi aec3e1c4ff refactor heredoc identifier 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi 44fbfc5184 implement literal %W %w %s
refactor string parsing
2013-03-17 21:27:37 +09:00
Yukihiro Matz Matsumoto 8ae0c58bb0 resolve conflict from #1017 2013-03-17 00:28:49 +09:00
Yukihiro Matz Matsumoto 3f85079cc0 refine abf1b18 to remove nested if 2013-03-17 00:22:36 +09:00
Masaki Muranaka 3aa3b4af90 Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
2013-03-16 21:29:39 +09:00
Masaki Muranaka a11e7f3c30 Remove unused string.h. 2013-03-16 18:08:18 +09:00
Masaki Muranaka abf1b188e3 Remove strncmp(). It enables to process various options. 2013-03-16 18:07:33 +09:00
kano4 376eb0ce50 Cut off eval_test from main 2013-03-13 23:09:01 +09:00
kano4 d25af7ccf9 Add static declaration 2013-03-12 22:59:39 +09:00
Yuichiro MASUI 814094230c Change unsigned char to uint8_t 2013-03-08 18:55:15 +09:00
Yuichiro MASUI 2842583678 New mrb format. The detail is in https://github.com/mruby/mruby/issues/944 2013-03-08 03:14:21 +09:00
FUKUZAWA-Tadashi 1af4110f7d implement heredoc 2013-03-03 20:08:13 +09:00
Akira Yumiyama c86d76141c bugfix: assert_raise 2013-03-02 19:38:43 +09:00
mattn 138ecf4723 Pluggable Struct 2013-03-01 13:37:46 +09:00