File: 03_roundtrip.t

package info (click to toggle)
libdebian-dep12-perl 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 124 kB
  • sloc: perl: 481; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl

use strict;
use warnings;

use Debian::DEP12;
use Test::More tests => 1;

my $entry;
my $warning;
local $SIG{__WARN__} = sub { $warning = $_[0]; $warning =~ s/\n$// };

my $input = <<END;
Bug-Database: https://github.com/merkys/Debian-DEP12/issues
Bug-Submit: https://github.com/merkys/Debian-DEP12/issues
Reference:
- Year: 2021
- DOI: search for my surname and year
END

$entry = Debian::DEP12->new( $input );
is( $entry->to_YAML, $input );