File: 2001_avoid_failing_test.patch

package info (click to toggle)
libpandoc-wrapper-perl 0.9.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 316 kB
  • sloc: perl: 589; makefile: 5; sh: 1
file content (23 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: skip test failing with pandoc >= 2.10
 Test is seemingly broken not here but in Pandoc::Elements.
Author: Jonas Smedegaard <dr@jones.dk>
Bug-Debian: https://bugs.debian.org/1017287
Last-Update: 2022-08-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/t/parse.t
+++ b/t/parse.t
@@ -30,9 +30,13 @@
     is_deeply $ex, $doc, 'parse_file';
 }
 
+SKIP: {
+    skip 'pandoc executable < 1.10 required' # FIXME in Pandoc::Elements
+        if pandoc->version('1.10');
 if ($Pandoc::Elements::VERSION >= 0.29) {
     my $html = pandoc->parse( 'markdown' => '# A *section*' )->to_html;
     ok $html =~ qr{<h1[^>]*>A <em>section</em></h1>}, 'parse->to_html';
 }
+}
 
 done_testing;