From 5f4d312b8ed3ff7a452643f1c21b87a600211f28 Mon Sep 17 00:00:00 2001 From: Polarblau Date: Tue, 7 Feb 2012 12:52:06 +0200 Subject: [PATCH] Added test for ASCII characters in code blocks created with back ticks. --- test/test_markup.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_markup.rb b/test/test_markup.rb index 601ab9fd..5e2ab470 100644 --- a/test/test_markup.rb +++ b/test/test_markup.rb @@ -422,6 +422,14 @@ context "Markup" do compare(content, output) end + test "code blocks with ascii characters" do + content = "a\n\n```\n├─foo\n```\n\nb" + output = "

a

\n\n
" +
+             "├─foo" +
+             "\n
\n
\n\n

b

" + compare(content, output) + end + test "code with wiki links" do content = <<-END booya