diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-14 15:14:02 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-14 15:14:02 +0000 |
commit | 9cba39a1a1b09f94a5d890e0ad6f4c74bb9f36bf (patch) | |
tree | 559f6780e94880fc3e7c37678fbe8b49ff0556d7 /test/ruby | |
parent | 0b841783b508c9bddb1c0117b1970fc7c350843b (diff) | |
download | ruby-9cba39a1a1b09f94a5d890e0ad6f4c74bb9f36bf.tar.gz |
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_beginendblock.rb | 3 | ||||
-rw-r--r-- | test/ruby/test_marshal.rb | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index c7296a4e85..deacc782b7 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -39,8 +39,7 @@ STDERR.reopen(File.open(errout, "w")) STDERR.sync = true Dir.chdir(#{q(DIR)}) cmd = "\\"#{ruby}\\" \\"endblockwarn.rb\\"" -exec(cmd) -exit!("must not reach here") +system(cmd) EOF launcher.close launcherpath = launcher.path 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) } |