Sha256: ae65517c175481a2008d9705c0eef75aedab48733981953ff70c13aced785142

Contents?: true

Size: 302 Bytes

Versions: 10

Compression:

Stored size: 302 Bytes

Contents

require 'libxml'
require 'test/unit'

class TC_XML_Node_text < Test::Unit::TestCase
  def setup
    @t=XML::Node.new_text("testdata")
    assert_instance_of(XML::Node,@t)
  end

  def test_content
    assert_equal("testdata",@t.content)
  end

  def test_type
    assert_equal(true,@t.text?)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
libxml-ruby-0.5.3 test/tc_xml_node_text.rb
libxml-ruby-0.5.4 test/tc_xml_node_text.rb
libxml-ruby-0.6.0-x86-mswin32-60 test/tc_xml_node_text.rb
libxml-ruby-0.7.0 test/tc_xml_node_text.rb
libxml-ruby-0.6.0 test/tc_xml_node_text.rb
libxml-ruby-0.7.0-x86-mswin32-60 test/tc_xml_node_text.rb
libxml-ruby-0.8.1-x86-mswin32-60 test/tc_xml_node_text.rb
libxml-ruby-0.8.0 test/tc_xml_node_text.rb
libxml-ruby-0.8.1 test/tc_xml_node_text.rb
libxml-ruby-0.8.0-x86-mswin32-60 test/tc_xml_node_text.rb