File: 0001-Fix-the-test-suite-for-YAML-1.21-compatibility.patch

package info (click to toggle)
libstring-diff-perl 0.07-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 296 kB
  • sloc: perl: 294; sh: 20; makefile: 14
file content (47 lines) | stat: -rw-r--r-- 1,050 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From 14e39a0ce479023f6e4fb226528ca86bb2bd58af Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Mon, 26 Dec 2016 19:39:12 +0200
Subject: [PATCH] Fix the test suite for YAML-1.21 compatibility

YAML-1.21, specifically <https://github.com/ingydotnet/yaml-pm/issues/131>,
changed the handling of trailing nulls.

Adapt the test suite accordingly.

Bug-Debian: https://bugs.debian.org/849362
Bug: https://github.com/yappo/p5-String-Diff/issues/6

---
 t/02_diff_fully-pp.t | 2 +-
 t/02_diff_fully.t    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/02_diff_fully-pp.t b/t/02_diff_fully-pp.t
index 69a96ab..27e32bd 100644
--- a/t/02_diff_fully-pp.t
+++ b/t/02_diff_fully-pp.t
@@ -30,7 +30,7 @@ new: perl
 --- data1
 -
  - ['-', 'perl']
--
+- []
 --- data2
 old: perl
 new: 
diff --git a/t/02_diff_fully.t b/t/02_diff_fully.t
index f816a89..6c4c8d8 100644
--- a/t/02_diff_fully.t
+++ b/t/02_diff_fully.t
@@ -29,7 +29,7 @@ new: perl
 --- data1
 -
  - ['-', 'perl']
--
+- []
 --- data2
 old: perl
 new: 
-- 
2.11.0