Commit Graph

1583 Commits

Author SHA1 Message Date
Paolo Bosetti 2c7cee8a1a Added Math.sqrt() that was missing in math.c, and added relevant test case 2012-06-04 15:57:05 -07:00
Daniel Bovensiepen db6c374301 Add Time tests 2012-06-05 03:11:56 +08:00
Daniel Bovensiepen 7bedf583a0 Add Time#utc 2012-06-05 03:11:41 +08:00
Yukihiro Matsumoto b2e6a0fc04 symbol can contain non printable characters 2012-06-04 20:34:43 +09:00
Yukihiro Matsumoto ab3c178a5f add Time#getlocal/getgm/getutc 2012-06-04 08:34:56 +09:00
Yukihiro Matsumoto 531124f057 time.c add ISO section numbers 2012-06-04 08:34:24 +09:00
Jon 30b6507817 Refactor hardcoded PARSER_DUMP macro 2012-06-03 18:58:19 -04:00
Yukihiro Matsumoto f24a52b04a remove mrb_open NULL check for small test programs. They are only for proof-on-concept test, not production code. Adding precise checks are not needed for those code 2012-06-04 01:46:04 +09:00
Yukihiro "Matz" Matsumoto d8f1e17ef6 Merge pull request #239 from thecodeshop/jf/mrb_open
guard mrb_open mem allocation and downstream usage
2012-06-03 09:41:32 -07:00
Yukihiro "Matz" Matsumoto 0719f52304 Merge pull request #240 from bovi/superclass-improvement
Class#superclass improvement
2012-06-03 09:38:39 -07:00
Daniel Bovensiepen 0c2d74020a Add more superclass tests 2012-06-03 23:31:53 +08:00
Daniel Bovensiepen c78dc2930c Add superclass tests for Exceptions 2012-06-03 23:31:17 +08:00
Daniel Bovensiepen 00caf25b52 Add BasicObject Tests 2012-06-03 23:30:15 +08:00
Daniel Bovensiepen 5612d195ec Improve Class#superclass to ISO 2012-06-03 23:29:40 +08:00
Jon 2fff59dc86 Check mrb_open return value for NULL 2012-06-03 11:11:35 -04:00
Jon 49aa42f3a9 Verify that memory for mrb_state was allocated 2012-06-03 11:11:34 -04:00
Yukihiro Matsumoto 7009a1d8f5 should not disclose metaclass; close #238 2012-06-03 23:26:40 +09:00
Yukihiro Matsumoto e4529c065d make arrays to share bodies 2012-06-03 23:05:31 +09:00
Yukihiro Matsumoto 3be1c88907 str_modify() revives string buffer kept in shared structure if refcnt == 1 2012-06-03 22:59:40 +09:00
Yukihiro "Matz" Matsumoto e66587439a Merge pull request #237 from k-tsj/rescue-only-standarderrors
A rescue clause with no parameter list rescues only StandardErrors
2012-06-03 05:08:48 -07:00
Yukihiro Matsumoto dece49750d string.subseq should update shared refcnt 2012-06-03 21:06:04 +09:00
Yukihiro Matsumoto 361d0ca75d strig.c should properly decref shared entities 2012-06-03 20:59:33 +09:00
Yukihiro Matsumoto 80c8908c4e remove mrb_exec_recursive 2012-06-03 17:59:59 +09:00
Yukihiro Matsumoto 4e46abb869 remove unused mrb_exec_recursive 2012-06-03 17:52:04 +09:00
Kazuki Tsujimoto 0629cf21ba A rescue clause with no parameter list rescues only StandardErrors 2012-06-03 17:48:02 +09:00
Yukihiro Matsumoto 597978c169 mrb_malloc/calloc/realloc should call mrb_garbage_collect before returning NULL 2012-06-03 17:34:23 +09:00
Yukihiro Matsumoto 479df23bc0 puts should return nil; close #215 2012-06-03 15:58:15 +09:00
Yukihiro Matsumoto 28b9619bb4 should decref shared string body on gc_free 2012-06-03 15:45:06 +09:00
Yukihiro Matsumoto 60e8d80fa7 Merge branch 'master' of github.com:mruby/mruby 2012-06-03 15:34:09 +09:00
Yukihiro "Matz" Matsumoto c9227e44fb Merge pull request #236 from liyuray/master
fix an issue that access violation occurred on uninitialized irep block when running "make test" on MINGW.
2012-06-02 23:33:56 -07:00
Yukihiro Matsumoto 5b47ec7a8b remove a blank line 2012-06-03 15:08:43 +09:00
Yukihiro Matsumoto 48ff4f2d36 time - time should not return time, but number 2012-06-03 15:05:18 +09:00
liyuray 5b3628051b issue: make test fail on mingw.
solution: initialize memory allocated.
2012-06-03 14:04:33 +08:00
Yukihiro Matsumoto e88e30524e should have adjusted stack address kept in closures; close #222 2012-06-03 14:44:46 +09:00
Yukihiro Matsumoto 27c2416d20 stack_extend boundary condition was wrong 2012-06-03 14:13:25 +09:00
Yukihiro Matsumoto 6c2c5540e2 should initialize shared->buf as well as s->buf 2012-06-03 09:09:40 +09:00
Yukihiro Matsumoto 52fdeb0225 str_make_shared not to return new string 2012-06-03 09:05:09 +09:00
Yukihiro Matsumoto 7f243a9b53 resolve conflict in test/t/class.rb 2012-06-03 08:23:40 +09:00
Yukihiro Matsumoto df80b7835a Add Class#superclass; a patch made by @bovi; close #234 2012-06-03 08:20:48 +09:00
Yukihiro "Matz" Matsumoto 8583b62277 Merge pull request #233 from bovi/add-class-new-test
Add first test case for Class#new
2012-06-02 16:14:12 -07:00
Yukihiro Matsumoto 12d75223d6 make shared string to reference-counted C structure to reduce GC pressure 2012-06-03 07:55:39 +09:00
Daniel Bovensiepen 57bd8d49ec Add first test case for Class#new and prepare further feature tests for it 2012-06-03 01:50:10 +08:00
Yukihiro Matsumoto 5fcd520514 small refactoring after mruby coding convention 2012-06-03 02:19:12 +09:00
Yukihiro "Matz" Matsumoto 369b556d04 Merge pull request #230 from MobiRuby/Class_new
support Class.new()
2012-06-02 10:17:18 -07:00
Yukihiro Matsumoto 15b9d74fc7 stupid naming error 2012-06-03 02:14:30 +09:00
Yukihiro "Matz" Matsumoto 79ad340c44 Merge pull request #232 from bovi/add-hash-tests
Add test cases for Hash
2012-06-02 10:13:05 -07:00
Yukihiro Matsumoto 1c926e852e removed mruby directory created for xcode 2012-06-03 02:12:32 +09:00
Yukihiro "Matz" Matsumoto b9923ba12f Merge pull request #223 from pbosetti/XCode
X code native target, follow up of #184
2012-06-02 10:08:34 -07:00
Daniel Bovensiepen 2c58690df1 Add test cases for Hash 2012-06-02 23:39:00 +08:00
Yukihiro Matsumoto cc86250297 remove unsafe macros in hash.h 2012-06-03 00:23:59 +09:00