Sha256: 061906cb6e85325d1cd6d2b26d902261ad273fbf3ef58cd88608e9be8d27422d
Contents?: true
Size: 926 Bytes
Versions: 24
Compression:
Stored size: 926 Bytes
Contents
require 'test/unit' require 'rd/inline-element' include RD class TestStringElement < Test::Unit::TestCase def test_to_label el = StringElement.new "label" assert_equal("label", el.to_label) ws = StringElement.new " label " assert_equal(" label ", ws.to_label) empty = StringElement.new "" assert_equal("", empty.to_label) end def test_content el = StringElement.new "" assert_equal("", el.content) el.content = "label" assert_equal("label", el.content) end end class TestVerb < Test::Unit::TestCase def test_to_label el = Verb.new "label" assert_equal("label", el.to_label) ws = Verb.new " label " assert_equal("label", ws.to_label) empty = Verb.new "" assert_equal("", empty.to_label) end def test_content el = Verb.new "" assert_equal("", el.content) el.content = "label" assert_equal("label", el.content) end end
Version data entries
24 entries across 23 versions & 2 rubygems
Version | Path |
---|---|
rdtool-0.6.27 | test/test-terminal-inline.rb |
rdtool-0.6.26 | test/test-terminal-inline.rb |
rdtool-0.6.25 | test/test-terminal-inline.rb |
rdtool-0.6.23 | test/test-terminal-inline.rb |