*** test/test_hikidoc.rb.old Sat Aug 8 10:05:15 2009 --- test/test_hikidoc.rb Mon Aug 17 02:07:24 2009 *************** *** 20,25 **** --- 20,41 ---- "{{hoge}}\n\na") end + def test_not_plugin + assert_convert("
{{hoge}}
\n", + "^{{hoge}}") + assert_convert("a{{hoge}}
\n", + "a^{{hoge}}") + assert_convert("^{{hoge}}
\n", + "^^{{hoge}}") + assert_convert("{{hoge{{fuga}}
\n", + "^{{hoge{{fuga}}") + assert_convert("^{{hoge}}\n", + " ^{{hoge}}") + assert_convert("
^{{hoge}}\n", + "<<<\n^{{hoge}}\n>>>") + + end + def test_plugin_with_quotes assert_convert("
foo\nbar\n", " foo\n bar\n") + assert_convert("
foo\n
bar\n", + " foo\n\n bar") assert_convert("
<foo>\n", "
{{_: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
bar\n", "<<<\nfoo\n>>>\n<<<\nbar\n>>>") + assert_convert("
foo\n\nbar\n", + "<<<\nfoo\n\nbar\n>>>") assert_convert("
<foo>\n", "<<<\n
{{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 + <<< + {{<
{{{}}}\n" + "
{{\n" + + "