From fa1adcf84b3de15802e265c78edec081e02d909b Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Mon, 24 Nov 2014 20:01:03 -0800 Subject: [PATCH] Fix test case. Fix a minor issue in expected anchor after recent PR. The tests were written before the improvement that squashes non-alphanumeric characters into a single dash, and does not include dashes at the beginning and end. This updates the test case to match that behavior so that tests pass and Travis is green. --- block_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block_test.go b/block_test.go index 2451cd2..b726c07 100644 --- a/block_test.go +++ b/block_test.go @@ -328,7 +328,7 @@ func TestPrefixAutoHeaderIdExtension(t *testing.T) { "
Header 6
\n", "####### Header 7\n", - "
# Header 7
\n", + "
# Header 7
\n", "Hello\n# Header 1\nGoodbye\n", "

Hello

\n\n

Header 1

\n\n

Goodbye

\n", @@ -379,7 +379,7 @@ func TestPrefixAutoHeaderIdExtensionWithPrefixAndSuffix(t *testing.T) { "
Header 6
\n", "####### Header 7\n", - "
# Header 7
\n", + "
# Header 7
\n", "Hello\n# Header 1\nGoodbye\n", "

Hello

\n\n

Header 1

\n\n

Goodbye

\n",