summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-11 12:23:49 -0400
committerdemo <demo@antix1>2026-05-11 12:23:49 -0400
commitcb13fa3e7d85f57bebf464827b308dfda79d29ba (patch)
treeed76349b490db81e5a3a5f8066e89f16fb9fb77e
parent3bfb19098c69a6b810a2a4e478f4184420bf4200 (diff)
test: add fourth example with different page URL
-rw-r--r--internal/links/find_count_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/links/find_count_test.go b/internal/links/find_count_test.go
index 2932bf9..c756fa9 100644
--- a/internal/links/find_count_test.go
+++ b/internal/links/find_count_test.go
@@ -50,6 +50,15 @@ var examples = []exampleType{
<a href=":foo">Bad link</a>
</html>
`},
+
+ // Example 4
+ {3, "https://example.com/example1", `<html>
+<a href="/">Back to homepage</a>
+<a href="#">Go to top of page</a>
+<a href="/example2">Second example</a>
+<a href="https://boot.dev">Boot Dev homepage</a>
+</html>
+`},
}
func TestFindCountHrefs(t *testing.T) {