File: add-release.t

package info (click to toggle)
libcpan-changes-perl 0.500005-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,964 kB
  • sloc: perl: 988; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
use Test::More;

use CPAN::Changes;

my $changes = CPAN::Changes->new;
$changes->add_release({ version => 1, note => 1 });
$changes->add_release({ version => 3, note => 2 });
$changes->add_release({ version => 2, note => 3 });
$changes->add_release({ version => 4, note => 4 });
$changes->add_release({ version => 3, note => 5 });
my @order = map { $_->note } $changes->releases;
is_deeply \@order, [ 1, 5, 3, 4 ];

done_testing;