Sha256: 58dba9fc5dde70399fc9d3ccbd31b8d5e7125d17a6dec17b6c6a7c1a026efbc7

Contents?: true

Size: 740 Bytes

Versions: 1

Compression:

Stored size: 740 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/more/xmlhelper.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/more/xmlhelper.rb'


  require 'test/unit'

  class TCXMLHelper < Test::Unit::TestCase

    def test_01
      x = XMLHelper
      d = x.element( :a )
      assert_equal( "<a />", d )
    end

    def test_02
      x = XMLHelper
      d = x.element( :a, x.element( :b, "X" ) )
      assert_equal( "<a><b>X</b></a>", d )
    end

    def test_03
      x = XMLHelper
      d = x.element( :a, x.element( :b, "X" ) + x.element( :c, "Y" ) )
      assert_equal( "<a><b>X</b><c>Y</c></a>", d )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/more/test_xmlhelper.rb