File: 03provided.t

package info (click to toggle)
libperlx-maybe-xs-perl 1.001-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: pascal: 33; perl: 16; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings;
use Test::More tests => 1;

use PerlX::Maybe::XS ':all';

is_deeply(
	[
		provided 0,     foo   => 1, 6,
		provided 1,     bar   => 2, 7,
		provided 0,     baz   => 3, 8,
		provided undef, quux  => 4, 9,
		provided [],    quuux => 5, 10,
	],
	[
		6,
		bar   => 2, 7,
		8,
		9,
		quuux => 5, 10,
	]
);