From c939f02adbe80dbd86209364e1d1deda19e3813a Mon Sep 17 00:00:00 2001 From: Altai-man Date: Sat, 30 Jul 2022 19:10:00 +0200 Subject: [PATCH] Update test data --- t/050-format-x-index.t | 16 +++++++--------- t/070-headings.t | 4 ++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/t/050-format-x-index.t b/t/050-format-x-index.t index ab1edde..1b50310 100644 --- a/t/050-format-x-index.t +++ b/t/050-format-x-index.t @@ -3,7 +3,7 @@ use Pod::To::HTML; plan 3; =begin pod -X<|behavior> L +X<|category,behavior> L =end pod my $r = pod2html $=pod, :url({ $_ }); @@ -11,16 +11,16 @@ ok $r ~~ m/'href="http://www.doesnt.get.rendered.com"'/; =begin pod -When indexing X the X is used. +When indexing X the X is used. -It is possible to index X in repeated places. +It is possible to index X in repeated places. =end pod $r = node2html $=pod[1]; like $r, / 'When indexing' - \s* '' + \s* '' \s* 'an item' .+ 'the' .+ 'X format' @@ -31,17 +31,15 @@ like $r, / =begin pod -When indexing X another text can be used for the index. +When indexing X another text can be used for the index. It is possible to index Xwith hierarchical levels. -And then index the X with different index entries. =end pod $r = node2html $=pod[2]; like $r, / - 'When indexing ' + 'When indexing ' .* 'an item' - .+ 'to index ' .+ 'index-entry-defining__a_term-hierarchical_items' .+ 'hierarchical items' - .+ 'index the ' .+ '>same place' + .+ 'to index ' .+ 'index-entry-%20a%20term' .+ 'hierarchical items' /, 'Text with indexed items correct'; diff --git a/t/070-headings.t b/t/070-headings.t index dd6a930..0ba8ad8 100644 --- a/t/070-headings.t +++ b/t/070-headings.t @@ -22,7 +22,7 @@ plan 5; =head3 Heading 2.2.1 -=head3 X 2.2.2 +=head3 X 2.2.2 =head1 Heading C<3> @@ -38,7 +38,7 @@ ok so ($0 && $1 && $2), 'hierarchical numbering'; ok so $0, 'link down to heading'; -($html ~~ m:g/ ('name="index-entry-Heading"') /); +($html ~~ m:g/ ('id="index-entry-Heading"') /); ok so ($0 || $1), 'no X<> anchors in ToC';