1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby
yugui 3a5c0bbcb5 * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy.
* class.c (make_metametaclass): new function. extracted from
  rb_make_metaclass.

* class.c (rb_make_metaclass): uses make_metametaclass when called for a
  metaclass.

* class.c (rb_singleton_class): creates a meta^(n+2)-class in
  addition to a meta^(n+1)-class when called for a meta^(n)-class.
  This is because the returned meta^(n+1) class must acts as an instance of 
  Class, metaclass of Class, ..., meta^(n+1)-class of Class,
  Module, metaclass of Module, ..., meta^(n+1)-class of Module,
  Object, metaclass of Object, ..., meta^(n+2)-class of Object,
  BasicObject, metaclass of BasicObject, ..., meta^(n+2)-class of
  and BasicObject even when Class, Module, Object or BasicObject has
  not have its meta^(i)-class yet.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-15 06:23:43 +00:00
..
enc
allpairs.rb
beginmainend.rb
endblockwarn_rb
envutil.rb
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb
test_argf.rb
test_array.rb
test_assignment.rb
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb
test_call.rb
test_case.rb
test_class.rb
test_clone.rb
test_comparable.rb
test_complex.rb
test_complex2.rb
test_complexrational.rb * test/ruby/test_rational2.rb: updated. 2008-09-23 12:34:35 +00:00
test_condition.rb
test_const.rb
test_continuation.rb
test_defined.rb * compile.c, insns.def: change return value of "defined?" 2007-11-27 04:43:54 +00:00
test_dir.rb
test_econv.rb
test_encoding.rb
test_enum.rb
test_enumerator.rb
test_env.rb
test_eval.rb
test_exception.rb
test_fiber.rb
test_file.rb
test_file_exhaustive.rb
test_fixnum.rb
test_float.rb * numeric.c (flodivmod): floating point division should raise 2008-11-27 16:01:54 +00:00
test_fnmatch.rb
test_gc.rb * test/ruby/test_gc.rb: add tests to achieve over 90% test coverage of 2008-06-05 14:57:05 +00:00
test_hash.rb
test_ifunless.rb
test_integer.rb * prec.c: removed. Precision will be redesigned and be back again. 2008-09-19 13:10:54 +00:00
test_integer_comb.rb
test_io.rb
test_io_m17n.rb
test_iterator.rb
test_lambda.rb * test: assert_raises has been deprecated since a long time ago. 2008-09-24 17:44:39 +00:00
test_literal.rb
test_m17n.rb
test_m17n_comb.rb
test_marshal.rb
test_math.rb
test_metaclass.rb * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy. 2008-12-15 06:23:43 +00:00
test_method.rb
test_mixed_unicode_escapes.rb
test_module.rb
test_numeric.rb
test_object.rb
test_objectspace.rb
test_optimization.rb
test_pack.rb
test_parse.rb
test_path.rb
test_pipe.rb
test_primitive.rb
test_proc.rb * iseq.c (rb_iseq_parameters): proc arguments are always optional. 2008-12-05 04:05:48 +00:00
test_process.rb
test_rand.rb
test_range.rb * test/ruby/test_range.rb: add a test. 2008-12-02 17:53:48 +00:00
test_rational.rb
test_rational2.rb
test_readpartial.rb
test_regexp.rb
test_require.rb
test_rubyoptions.rb
test_settracefunc.rb
test_signal.rb
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_string.rb
test_stringchar.rb
test_struct.rb
test_super.rb
test_symbol.rb
test_system.rb
test_thread.rb
test_time.rb
test_trace.rb
test_transcode.rb
test_unicode_escape.rb
test_variable.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb