Sha256: b0b14945e1ac1322d66fc2af66af29a35990b5743d51871812128757d5491bec
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/xmlhelper.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # 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.8.49 | test/lib/facets/more/test_xmlhelper.rb |