File: app-pod2pandoc-arguments.t

package info (click to toggle)
libpod-pandoc-perl 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 248 kB
  • sloc: perl: 587; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use Test::More;
use App::pod2pandoc qw(parse_arguments);

is_deeply
  [ parse_arguments(qw(foo --bar doz --baz --wiki)) ],
  [ ['foo'], { wiki => 1 }, qw(--bar doz --baz) ], 'parse_arguments';

is_deeply
  [ parse_arguments(qw(foo -- doz --baz --wiki)) ],
  [ ['foo'], {}, qw(doz --baz --wiki) ], 'parse_arguments';

done_testing;