Sha256: c366eb982c6f00649c70df1181debb7360df535702165b7682e8fef3c3fc0f38

Contents?: true

Size: 299 Bytes

Versions: 19

Compression:

Stored size: 299 Bytes

Contents

require 'xml'
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

19 entries across 19 versions & 5 rubygems

Version Path
libxml-jruby-modified-1.0.2-jruby test/tc_node_text.rb
libxml-jruby-modified-1.0.1-jruby test/tc_node_text.rb
libxml-fixed-jruby-1.0.0-jruby test/tc_node_text.rb
libxml-jruby-fixed-1.0.0-jruby test/tc_node_text.rb
libxml-jruby-1.0.0 test/tc_node_text.rb
libxml-ruby-0.8.2-x86-mswin32-60 test/tc_node_text.rb
libxml-ruby-0.8.2 test/tc_node_text.rb
libxml-ruby-0.9.2-x86-mswin32-60 test/tc_node_text.rb
libxml-ruby-0.9.3-x86-mswin32-60 test/tc_node_text.rb
libxml-ruby-0.9.1-x86-mswin32-60 test/tc_node_text.rb
libxml-ruby-0.9.0-x86-mswin32-60 test/tc_node_text.rb
libxml-ruby-0.8.3 test/tc_node_text.rb
libxml-ruby-0.8.3-x86-mswin32-60 test/tc_node_text.rb
libxml-ruby-0.9.0 test/tc_node_text.rb
libxml-ruby-0.9.1 test/tc_node_text.rb
libxml-ruby-0.9.2 test/tc_node_text.rb
libxml-ruby-0.9.4 test/tc_node_text.rb
libxml-ruby-0.9.3 test/tc_node_text.rb
libxml-ruby-0.9.4-x86-mswin32-60 test/tc_node_text.rb