Sha256: 1034760ec68f05b931538861ebc939760dab3cce6167777347511b52ac9f9f2d

Contents?: true

Size: 571 Bytes

Versions: 2

Compression:

Stored size: 571 Bytes

Contents

require 'faster_xml_simple'
require 'test/unit'
require 'pp'

class RegressionTest < Test::Unit::TestCase
  def test_content_nil_regressions
    expected = {"asdf"=>{"jklsemicolon"=>nil}}
    assert_equal expected, FasterXmlSimple.xml_in("<asdf><jklsemicolon /></asdf>")
    assert_equal expected, FasterXmlSimple.xml_in("<asdf><jklsemicolon /></asdf>", 'forcearray'=>['asdf'])
  end
  
  def test_s3_regression
    str = File.read("test/fixtures/test-7.xml")
    assert_nil FasterXmlSimple.xml_in(str)["AccessControlPolicy"]["AccessControlList"]["__content__"]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aws-s3-0.1.1 support/faster-xml-simple/test/regression_test.rb
aws-s3-0.1.0 support/faster-xml-simple/test/regression_test.rb