summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-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) {