Project

General

Profile

Bug #9370 ยป parser.rb

test file for behaviour of parser - herwinw (Herwin Quarantainenet), 01/06/2014 08:38 PM

 
require 'xmlrpc/parser'
document = <<"EOT"
<?xml version="1.0"?>
<methodCall>
<methodName>foo</methodName>
<params>
<param><value><base64>#{["\x00" * 4].pack('m')}</base64></value>
</param>
</params>
</methodCall>
EOT

p = XMLRPC::XMLParser::XMLTreeParser.new()
p.parseMethodCall(document)
    (1-1/1)