From 9cba39a1a1b09f94a5d890e0ad6f4c74bb9f36bf Mon Sep 17 00:00:00 2001 From: nahi Date: Tue, 14 Oct 2003 15:14:02 +0000 Subject: * lib/soap/baseData.rb: Introduce SOAPType as the common ancestor of SOAPBasetype and SOAPCompoundtype. * lib/soap/generator.rb, lib/soap/element.rb, lib/soap/encodingstyle/*: Encoding methods signature change. Pass SOAPGenerator as a parameter. * lib/soap/mapping/*, test/soap/marshal/test_marshal.rb: Refactoring for better marshalling/unmarshalling support. Now I think SOAP marshaller supports all kind of object graph which is supported by Ruby's original marshaller. Of course there could be bugs as always. Find it. :-) * lib/soap/rpc/standaloneServer.rb: Set severity threshould to INFO. DEBUG is too noisy. * lib/xsd/datatypes.rb: DateTime#of is obsoleted. Use DateTime#offset. * test/wsdl/emptycomplextype.wsdl, test/xsd/xmlschema.xml: Avoid useless warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_marshal.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/ruby/test_marshal.rb') diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index e4e4cc3c6a..ac804eb24c 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -252,6 +252,19 @@ module MarshalTestLib marshal_equal(o) {|obj| class << obj; ancestors end} end + def test_extend_string + o = String.new + o.extend Mod1 + marshal_equal(o) { |obj| obj.kind_of? Mod1 } + o = String.new + o.extend Module.new + assert_raises(TypeError) { marshaltest(o) } + o = String.new + o.extend Mod1 + o.extend Mod2 + marshal_equal(o) {|obj| class << obj; ancestors end} + end + def test_anonymous c = Class.new assert_raises(TypeError) { marshaltest(c) } -- cgit v1.2.3