summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-09 11:53:37 -0400
committerdemo <demo@antix1>2026-05-09 11:53:37 -0400
commit7ad8b06c83310925b3f1fae54a0903c02e49e47c (patch)
tree7e9511dd654cb2b98a3e9ec0d156a6b6e70e97ac
parentfa637da7792f72ae1b79c99ecbf9d44e965048c3 (diff)
test: make sure comment text isn't included in Links output
-rw-r--r--internal/test/findlinks_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/test/findlinks_test.go b/internal/test/findlinks_test.go
index 2704e20..c9107f1 100644
--- a/internal/test/findlinks_test.go
+++ b/internal/test/findlinks_test.go
@@ -51,6 +51,15 @@ func TestFindlinks(t *testing.T) {
},
},
},
+ {
+ "html/ex4.html",
+ []findlinks.Link{
+ {
+ Href: "/dog-cat",
+ Text: "dog cat",
+ },
+ },
+ },
}
for _, test := range tests {