Sha256: 8f1eaf06d79d3d00ef7c6264efd42934e08964298b1bbba7cdd1a4b929da4cd1

Contents?: true

Size: 490 Bytes

Versions: 29

Compression:

Stored size: 490 Bytes

Contents

require 'test/unit'
require 'soap/processor'


module SOAP


class TestGenerator < Test::Unit::TestCase
  # based on #417, reported by Kou.
  def test_encode
    str = "\343\201\217<"
    g = SOAP::Generator.new
    g.generate(SOAPElement.new('foo'))
    assert_equal("&lt;", g.encode_string(str)[-4, 4])
    #
    begin
      kc_backup = $KCODE.dup
      $KCODE = 'EUC-JP'
      assert_equal("&lt;", g.encode_string(str)[-4, 4])
    ensure
      $KCODE = kc_backup
    end
  end
end


end

Version data entries

29 entries across 29 versions & 12 rubygems

Version Path
mumboe-soap4r-1.6.0.pre.beta test/soap/test_generator.rb
DefV-soap4r-1.5.8.2 test/soap/test_generator.rb
mumboe-soap4r-1.5.8.7 test/soap/test_generator.rb
teo-soap4r-1.5.9b test/soap/test_generator.rb
mumboe-soap4r-1.5.8.6 test/soap/test_generator.rb
soap4r-spox-1.6.0 test/soap/test_generator.rb
soap4r-r19-1.5.9 test/soap/test_generator.rb
mumboe-soap4r-1.5.8.5 test/soap/test_generator.rb
soap4r-ruby1.9-2.0.5 test/soap/test_generator.rb
soap4r-sgonyea-1.6.0 test/soap/test_generator.rb
soap4r-straightjacket-1.5.9 test/soap/test_generator.rb
soap4r-straightjacket-1.5.8 test/soap/test_generator.rb
soap4r-ruby1.9-2.0.3 test/soap/test_generator.rb
soap4r-ruby1.9-2.0.2 test/soap/test_generator.rb
soap4r-ruby1.9-2.0.1 test/soap/test_generator.rb
mumboe-soap4r-1.5.8.4 test/soap/test_generator.rb
soap4r-ruby1.9-2.0.0 test/soap/test_generator.rb
hands-soap4r-1.5.8.4 test/soap/test_generator.rb
soap4r-ruby1.9-1.0.0 test/soap/test_generator.rb
snaury-soap4r-1.5.8.1 test/soap/test_generator.rb