Skip to content

Commit e791007

Browse files
committed
test(tools): cover check 1's CRLF fence rule
Related to #2144 Signed-off-by: Varun Ramesh <varamesh@nvidia.com>
1 parent a1b20fc commit e791007

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/check-docs-mdx_test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,14 @@ check_contains "tab-fence-reported" "bare <word> tag"
443443
# can reach the checker.
444444
DIR_CRLF="${TMPDIR_TEST}/crlf"
445445
mkdir -p "${DIR_CRLF}"
446-
printf '# CRLF closer\r\n\r\n```\r\ncode\r\n```\r\n\r\nProse with <placeholder> after the block.\r\n' >"${DIR_CRLF}/crlf-closer.md"
446+
printf '# CRLF closer\r\n\r\n```\r\ncode\r\n```\r\n\r\nProse with <placeholder> after the block.\r\n\r\nAnd a <br> on its own line.\r\n' >"${DIR_CRLF}/crlf-closer.md"
447447

448448
run "${DIR_CRLF}"
449449
check_rc_nonzero "crlf-closer-exits-nonzero"
450450
check_contains "crlf-closer-reopens-prose" "bare <word> tag"
451+
# <br> covers check 1's own tracker, which carries a separate copy of the CRLF
452+
# rule; a <word> hazard alone cannot catch a regression there.
453+
check_contains "crlf-closer-reopens-void" "non-self-closing void element"
451454

452455
if (( fails > 0 )); then
453456
echo "${fails} test(s) failed"

0 commit comments

Comments
 (0)