summaryrefslogtreecommitdiffhomepage
path: root/test/t/class.rb
AgeCommit message (Collapse)Author
2018-08-30Separate meta-programming features to `mruby-metaprog` gem.Yukihiro "Matz" Matsumoto
We assume meta-programming is less used in embedded environments. We have moved following methods: * Kernel module global_variables, local_variables, singleton_class, instance_variables, instance_variables_defined?, instance_variable_get, instance_variable_set, methods, private_methods, public_methods, protected_methods, singleton_methods, define_singleton_methods * Module class class_variables, class_variables_defined?, class_variable_get, class_variable_set, remove_class_variable, included_modules, instance_methods, remove_method, method_removed, constants * Module class methods constants, nesting Note: Following meta-programming methods are kept in the core: * Module class alias_method, undef_method, ancestors, const_defined?, const_get, const_set, remove_const, method_defined?, define_method * Toplevel object define_method `mruby-metaprog` gem is linked by default (specified in default.gembox). When it is removed, it will save 40KB (stripped:8KB) on x86-64 environment last time I measured.
2017-10-11Test for MRB_WITHOUT_FLOATYAMAMOTO Masaya
2017-04-06Get constant of parent class even if child class is defined in signleton ↵Kouichi Nakanishi
class; fix #3575
2017-03-30Modify class variable definition in singleton class; fix #3539Kouichi Nakanishi
2016-12-01Add test for recently fixed bugsYutaka HARA
2016-11-24Fix segfault on remove_method with invalid argumentBouke van der Bijl
Reported by https://hackerone.com/jpenalbae
2016-01-11Fix class variable reference in moduleKouhei Sutou
Fix #3079
2015-05-29check if outer is a class or modulecremno
For modules this check didn't exist yet. Also call #inspect.
2014-08-09Fix a bug that class variable can't be referenced from class methodKouhei Sutou
Class method defined in singleton class should be evaluated in class context not singleton class context. fix #2515
2014-06-15Move direct superclass checking to `test/t/superclass.rb`.take_cheeze
2014-05-22Class.new add test caseksss
2014-01-25clone Class/Module rightlyh2so5
2013-12-27When superclass isn't a class testsCarson McDonald
2013-12-27More singleton testsCarson McDonald
2013-12-25Add more testing for singletonsCarson McDonald
2013-10-30implement Class.new with blockh2so5
2013-10-25update test code to ensure return value from class statementYukihiro "Matz" Matsumoto
2013-10-25add a regression for #1544fleuria
2013-08-13Test for Class#inheritedCarson McDonald
2013-08-13Add test for Class.new(*args)Carson McDonald
2013-08-02I fix order of actual and expect test value in class.rb.Jun Hiroe
2013-06-14Merge pull request #1279 from Bovi-Li/improve-testsYukihiro "Matz" Matsumoto
Improve Test Infrastructure (Part 1)
2013-06-09Singleton raises TypeError on #newDaniel Bovensiepen
2013-06-09Improve Class testsDaniel Bovensiepen
2013-06-09Improve alias testsDaniel Bovensiepen
2013-06-09Improve undef testsDaniel Bovensiepen
2013-06-08Add undef var testCarson McDonald
2013-04-02Add test cases.Masaki Muranaka
2013-01-20Add test for `undef` and `alias`.Masamitsu MURASE
2012-07-29Modify test for Class.Masamitsu MURASE
* Rename some classes in test/t/class.rb to avoid name conflict. * Add tests for mismatch fo superclass.
2012-06-03Improve Class#superclass to ISODaniel Bovensiepen
2012-06-03resolve conflict in test/t/class.rbYukihiro Matsumoto
2012-06-03Add Class#superclass; a patch made by @bovi; close #234Yukihiro Matsumoto
2012-06-03Add first test case for Class#new and prepare further feature tests for itDaniel Bovensiepen
2012-05-25Add Tests for all Exception classes, for false, true, Proc, Module, nil and ↵Daniel Bovensiepen
Object