*** test/test_hikidoc.rb.old Sat Aug 8 10:05:15 2009 --- test/test_hikidoc.rb Mon Aug 10 02:20:41 2009 *************** *** 143,154 **** --- 143,166 ---- " foo\n bar") assert_convert("
foo\nbar
\n", " foo\n bar\n") + assert_convert("
foo
\n
bar
\n", + " foo\n\n bar") assert_convert("
<foo>
\n", " ") assert_convert("
{{_:a/a}}
\n", " {{_:a/a}}") assert_convert("
[[_:a/a]]
\n", " [[_:a/a]]") + assert_convert("
{{\na\n}}
\n", + " {{\n a\n }}") + assert_convert("
{{
\n

a\n}}

\n", + " {{\na\n}}") + end + + def test_pre_with_plugin + assert_convert("
{{
\n" + + "
{{foo}}
\n", + " {{\n{{foo}}") end def test_multi_pre *************** *** 158,171 **** --- 170,203 ---- "<<<\nfoo\n bar\n>>>") assert_convert("
foo
\n
bar
\n", "<<<\nfoo\n>>>\n<<<\nbar\n>>>") + assert_convert("
foo\n\nbar
\n", + "<<<\nfoo\n\nbar\n>>>") assert_convert("
<foo>
\n", "<<<\n\n>>>") + assert_convert("
{{foo}}
\n", + "<<<\n{{foo}}\n>>>") + assert_convert("
{{
\n

foo}}

\n", + "<<<\n{{\n>>>\nfoo}}") + assert_convert(<<-END_OF_EXPECTED, <<-END_OF_INPUT) +
{{<<TEST
+  test
+ TEST}}
+ END_OF_EXPECTED + <<< + {{<>> + END_OF_INPUT end def test_multi_pre_with_plugin assert_convert("
{{{}}}
\n" + "
{{'test'}}
\n", "<<<\n{{{}}}\n>>>\n{{'test'}}") + assert_convert("
{{
\n" + + "
{{'test'}}
\n", + "<<<\n{{\n>>>\n{{'test'}}") end def test_comment