Skip to content

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giterlizzi committed May 11, 2024
1 parent 8575b3f commit c354625
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/10-encode.t
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ foreach my $test (@TESTS) {
subpath => $test->{subpath},
);

my $got_purl_3 = URI::PackageURL->from_string($expected_purl)->to_string;

is($got_purl_1, $expected_purl, "encode_purl --> $got_purl_1");
is($got_purl_2, $expected_purl, "URI::PackageURL --> $got_purl_2");
is($got_purl_3, $expected_purl, "decode+encode --> $got_purl_3");

};

Expand Down

0 comments on commit c354625

Please sign in to comment.