naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
nobu
b3265c0ed6
marshal.c: check for prepended
...
* marshal.c (w_extended): check for prepended object.
[ruby-core:53206] [Bug #8043 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09 02:58:45 +00:00
nobu
0316cf2e52
marshal.c: prepended objects
...
* marshal.c (r_object0): load prepended objects. treat the class of
extended object in the included modules as prepended singleton
class. [ruby-core:53202] [Bug #8041 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-08 15:26:08 +00:00
nobu
e14095fff2
marshaltestlib.rb: descriptive assertions
...
* test/ruby/marshaltestlib.rb (MarshalTestLib#test_string_ivar)
(MarshalTestLib#test_string_subclass_cycle): use more descriptive
assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-08 15:26:05 +00:00
marcandre
0003ac99cc
Remove very obsolete test code
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-08 01:21:41 +00:00
marcandre
dfde34cb3c
* class.c (rb_mod_ancestors): Include singleton_class in ancestors list
...
[Feature #8035 ]
* test/ruby/test_module.rb (class): test for above
* test/ruby/marshaltestlib.rb (module): adapt test
* NEWS: list change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-07 17:54:49 +00:00
kazu
80e1f46ff0
fix a typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 12:38:42 +00:00
ko1
f3e5f2cd75
* bignum.c (bignew_1): Bignum instances are frozen.
...
Feature #3222
* include/ruby/ruby.h: Fixnum instances are also frozen.
* class.c (singleton_class_of): check Bignum before
singleton cheking.
* test/ruby/test_bignum.rb: add a test.
* test/ruby/test_fixnum.rb: ditto.
* test/ruby/marshaltestlib.rb, test/ruby/test_eval.rb,
test/ruby/test_object.rb: catch up above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-28 00:03:20 +00:00
ko1
180c744b3b
* numeric.c (rb_float_new_in_heap), include/ruby/ruby.h:
...
make all Float objects frozen.
[ruby-dev:46081] [ruby-trunk - Feature #6936 ]
Most part of patch by NARUSE, Yui <naruse@ruby-lang.org>.
* class.c (singleton_class_of): raise TypeError when
trying to define a singleton method on Float objects.
* vm.c (vm_define_method): ditto.
* test/ruby/marshaltestlib.rb: catch up above changes.
* test/ruby/test_class.rb: ditto.
* test/test_pp.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-27 02:10:53 +00:00
nobu
e1cc514073
* test/ruby: fixed nonsense assertions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 05:33:43 +00:00
nobu
4e786ee162
* test/ruby/{marshaltestlib,test_marshal}.rb: suppressed warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-21 03:37:40 +00:00
naruse
5e2a28d13d
Add test for marshaling regexp.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 05:51:28 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
nobu
00b4a3f9c4
* test: assert_raises has been deprecated since a long time ago.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 17:44:39 +00:00
akr
7132a4f979
* marshal.c (w_object): TYPE_USERDEF assigns id for ivars first.
...
[ruby-dev:34159] by nagachika.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-10 08:41:46 +00:00
akr
2f9ecb628b
avoid ruby -d test/ruby/test_marshal.rb output binary marshaled data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 11:20:45 +00:00
ko1
86846f0ee5
* test/ruby/marshaltestlib.rb: eval(sym) -> eval(sym.to_s)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 13:03:54 +00:00
nahi
ffd075fad5
* test/ruby/marshaltestlib.rb: common marshal testcase added.
...
* test/ruby/test_marshal.rb: use above testsuite.
* test/soap/marshal/test_marshal.rb: ditto.
* test/soap/marshal/cmarshal.rb: removed (not used).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 14:15:37 +00:00