From 087a921f8ecde983ca1a7cc4e37cb6b9ab128551 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 10:39:51 -1000 Subject: Pair each readme absence check with what renders Four checks only looked for something missing, which a dropped or plain text rendering also satisfies, and the spacing macro check missed a 0 drawn at the start of a line. --- tests/extensions/test-about-render.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/extensions/test-about-render.lua b/tests/extensions/test-about-render.lua index 6f54805..bdd4d84 100644 --- a/tests/extensions/test-about-render.lua +++ b/tests/extensions/test-about-render.lua @@ -222,6 +222,7 @@ h.contains("and only that text reaches the page", out, "

bad

") out = render("README.md", "[bad](//evil.example/x)") h.excludes("a scheme relative link renders no anchor", out, "bad

") out = render("README.md", "[q](https://example.com/a'b)") h.contains("a quote in a link target is escaped", out, "href='https://example.com/a'b'") @@ -332,9 +333,11 @@ h.contains("an indented block renders as code", out, out = render("README.md", "- item\n\n more about it") h.excludes("an indented paragraph after a list stays prose", out, "
")
+h.contains("and renders as a paragraph", out, "

more about it

") out = render("README.md", "[a](\\\\evil.example/x) [b](\\/evil.example/x)") h.excludes("a scheme relative link spelt with backslashes renders no anchor", out, "
a b

") out = render("README.md", "| a | b |\n| --- | --- |\n| 1 | 2 |") h.contains("a pipe table renders its head", out, "ab") @@ -345,6 +348,7 @@ h.contains("a table cuts a paragraph short", out, "

Pick one:

a | b in prose

") out = render("README.md", "| a | b |\n|---|---|\n| x \\| y | `p \\| q` |") h.contains("an escaped pipe stays in its cell", out, "") @@ -461,8 +465,8 @@ h.contains("a definition ends at two dots with blanks after them", out, "

shown

") out = render("page.1", ".TP\n.PD 0\n.B \\-a\nall\n.PD\nDon\\*(Aqt") -h.excludes("a spacing macro draws nothing", out, ">0") -h.contains("DocBook's apostrophe string expands", out, "Don't") +h.equals("a spacing macro draws nothing and the apostrophe string expands", out, + "

-a
\nall\nDon't

") out = render("page.1", '.\\" a comment\nvisible') h.excludes("a roff comment is dropped", out, "comment") -- cgit 2.12.1
x | yp | q