Skip to content

Commit

Permalink
add (disabled) test for #309
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Jun 25, 2024
1 parent 642f0ee commit a4f7c57
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 13 additions & 0 deletions inline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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*—`,
"<p><em>f</em>—</p>\n",
}
p := TestParams{}
p.extensions = parser.NoIntraEmphasis
doTestsInlineParam(t, tests, p)
}

func TestReferenceOverride(t *testing.T) {
var tests = []string{
"test [ref1][]\n",
Expand Down
13 changes: 9 additions & 4 deletions s/run_tests.ps1
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a4f7c57

Please sign in to comment.