File: boolean-test-number.patch

package info (click to toggle)
libtest-json-schema-acceptance-perl 1.003%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 652 kB
  • sloc: perl: 521; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 1,280 bytes parent folder | download
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
Description: Debian package json-schema-test-suite 2.0.0-1.1 has draft7 with 7
 boolean type tests instead of 10, thus the number has to be adjusted.
Author: Andrius Merkys <merkys@debian.org>
--- a/t/01-basic.t
+++ b/t/01-basic.t
@@ -38,7 +38,7 @@
 
 my @bool_tests = grep $_->isa('Test2::Event::Ok') && $_->name =~ /boolean type matches booleans/,
   @$events;
-is(@bool_tests, 10, 'found all the tests that check for boolean type');
+is(@bool_tests, 7, 'found all the tests that check for boolean type');
 
 cmp_deeply(
   \@bool_tests,
--- a/t/03-validate_data.t
+++ b/t/03-validate_data.t
@@ -30,7 +30,7 @@
 
 my @bool_tests = grep $_->isa('Test2::Event::Ok') && $_->name =~ /boolean type matches booleans/,
   @$events;
-is(@bool_tests, 10, 'found all the tests that check for boolean type');
+is(@bool_tests, 7, 'found all the tests that check for boolean type');
 
 cmp_deeply(
   \@bool_tests,
--- a/t/04-validate_json_string.t
+++ b/t/04-validate_json_string.t
@@ -30,7 +30,7 @@
 
 my @bool_tests = grep $_->isa('Test2::Event::Ok') && $_->name =~ /boolean type matches booleans/,
   @$events;
-is(@bool_tests, 10, 'found all the tests that check for boolean type');
+is(@bool_tests, 7, 'found all the tests that check for boolean type');
 
 cmp_deeply(
   \@bool_tests,