X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F03_versions.t;h=3a7beb44dfae90bf620f3e626086bb9fb0f27ccf;hb=747a1435ec35ebac24e9e321e6b3b4afcc2bea7b;hp=1a9af80905b557bfdaf4496ba77d93e117c1c5f7;hpb=70cf77464dc1d0966e821892d73b2dd6d1babc70;p=debbugs.git diff --git a/t/03_versions.t b/t/03_versions.t index 1a9af80..3a7beb4 100644 --- a/t/03_versions.t +++ b/t/03_versions.t @@ -1,6 +1,6 @@ # -*- mode: cperl;-*- -use Test::More tests => 3; +use Test::More tests => 5; use warnings; use strict; @@ -28,3 +28,11 @@ is_deeply($data->{found_versions},['1.34'],'removefoundversions removes all 1.00 $data = dclone(\%data); removefoundversions($data,$data->{package},'bar/1.00'); is_deeply($data->{found_versions},['1.00','1.34'],'removefoundversions removes only bar/1.00 versions'); +$data = dclone(\%data); +addfoundversions($data,$data->{package},'1.45'); +is_deeply($data->{fixed_versions},['bar/1.02'],'addfoundversions removes fixed versions'); +is_deeply($data->{found_versions},['bar/1.00', + '1.00', + '1.34', + 'foo/1.45', + ],,'addfoundversions adds found versions');