Sha256: d79501469a35832c4eb8a9a7b87b8e6570bf13612890670d5e377d06a9901266
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
require 'test/unit' require 'rdoc/markup' require 'rdoc/markup/to_html' class TestRdocMarkupToHtml < Test::Unit::TestCase def setup @am = RDoc::Markup::AttributeManager.new @th = RDoc::Markup::ToHtml.new end def test_tt_formatting assert_equal "<p>\n<tt>--</tt> — <tt>(c)</tt> ©\n</p>\n", util_format("<tt>--</tt> -- <tt>(c)</tt> (c)") assert_equal "<p>\n<b>—</b>\n</p>\n", util_format("<b>--</b>") end def util_fragment(text) RDoc::Markup::Fragment.new 0, nil, nil, text end def util_format(text) fragment = util_fragment text @th.start_accepting @th.accept_paragraph @am, fragment @th.end_accepting end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rdoc-2.1.0 | test/test_rdoc_markup_to_html.rb |