From a4f7c57820cb319fe8a10ebc8f21c9621b72a1ee Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Tue, 25 Jun 2024 22:43:55 +0200 Subject: [PATCH] add (disabled) test for #309 --- inline_test.go | 13 +++++++++++++ s/run_tests.ps1 | 13 +++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/inline_test.go b/inline_test.go index 250300c..8c8d8ad 100644 --- a/inline_test.go +++ b/inline_test.go @@ -15,6 +15,19 @@ func TestEmphasis(t *testing.T) { doTestsInlineParam(t, tests, TestParams{}) } +// TODO: to fix this we would have to update IsPunctuation() to handle +// `—` which looks like `-` but is a unicode 3-byte thingy and +// currently IsPunctuation() only handles 1-byte ascii +func Disabled_TestBug309(t *testing.T) { + var tests = []string{ + `*f*—`, + "

f

\n", + } + p := TestParams{} + p.extensions = parser.NoIntraEmphasis + doTestsInlineParam(t, tests, p) +} + func TestReferenceOverride(t *testing.T) { var tests = []string{ "test [ref1][]\n", diff --git a/s/run_tests.ps1 b/s/run_tests.ps1 index d5573c8..1512d02 100644 --- a/s/run_tests.ps1 +++ b/s/run_tests.ps1 @@ -1,5 +1,10 @@ go clean -testcache -go test -race -v . -go test -race -v ./ast -go test -race -v ./html -go test -race -v ./parser +#go test -race -v . +#go test -race -v ./ast +#go test -race -v ./html +#go test -race -v ./parser + +go test -v . +go test -v ./ast +go test -v ./html +go test -v ./parser