home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ruby164.zip
/
rbemx164.zip
/
ruby
/
share
/
doc
/
rdtool-0.6.10
/
test
/
test-rdtree.rb
< prev
next >
Wrap
Text File
|
2001-04-17
|
502b
|
23 lines
require 'runit/testcase'
require 'runit/cui/testrunner'
require 'rd/rdfmt'
require 'rd/element'
include RD
class TestRDTree < RUNIT::TestCase
def test_s_new
tr = RDTree.new("=begin\nTEST\n=end\n")
assert_kind_of(DocumentElement, tr.root)
tr_not_parse = RDTree.new("=begin\nTEST\n=end\n", ["test/data"], false)
assert_nil(tr_not_parse.root)
assert_equal(["test/data"], tr_not_parse.include_paths)
end
end
if $0 == __FILE__
RUNIT::CUI::TestRunner.run(TestRDTree.suite)
end