File: tc_xml_document_write.rb

package info (click to toggle)
libxml-ruby 0.5.2.0-3%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 652 kB
  • ctags: 875
  • sloc: ansic: 5,874; ruby: 1,524; xml: 144; makefile: 9
file content (25 lines) | stat: -rw-r--r-- 737 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id: tc_xml_document_write.rb 67 2006-04-17 13:30:22Z roscopeco $
require "libxml_test"
require 'test/unit'

class TC_XML_Document_Write < Test::Unit::TestCase
  def setup()
    @doc = XML::Document.new('1.0')
    assert_instance_of(XML::Document, @doc)
  end

  def teardown()
    @doc = nil
  end

  def test_ruby_xml_document_write_initialize()
    assert_instance_of(XML::Document, XML::Document.new())
    assert_equal('1.0', @doc.version)
  end # def test_ruby_xml_document_initialize()

  def test_ruby_xml_document_write_initialize2()
    doc = XML::Document.new('6.9')
    assert_instance_of(XML::Document, doc)
    assert_equal('6.9', doc.version)
  end # def test_ruby_xml_document_initialize2()
end # TC_XML_Document_Write