Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Dec 17, 2023
1 parent ada4a4b commit ae7274e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ WriteMakefile(
'Test::Exception' => 0.43,
'Test::More' => 0.94,
'Test::Pod' => 0,
'Test::Differences'=> 0,
},
( eval { ExtUtils::MakeMaker->VERSION(6.46) }
? ( META_MERGE => {
Expand Down
6 changes: 4 additions & 2 deletions t/01-parse.t
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,14 @@ subtest "check publisher restriction" => sub {
ok $consent->check_publisher_restriction( 2, 1, 32 );
ok !$consent->check_publisher_restriction( 2, 1, 42 );

use Test::Differences;

my $restrictions = $consent->publisher_restrictions(284);
is_deeply $restrictions, {},
eq_or_diff $restrictions, {},
"should return the restriction purpose id => restriction type map";

$restrictions = $consent->publisher_restrictions(32);
is_deeply $restrictions, { 1 => 0, 2 => 0, 7 => 0, 10 => 0 },
eq_or_diff $restrictions, { 1 => 0, 2 => 0, 7 => 0, 10 => 0 },

Check failure on line 605 in t/01-parse.t

View workflow job for this annotation

GitHub Actions / perl

1 failed test

Failed test 'should return the restriction purpose id => restriction type map'
"should return the restriction purpose id => restriction type map";


Expand Down

0 comments on commit ae7274e

Please sign in to comment.