File: 03provided.t

package info (click to toggle)
libperlx-maybe-perl 1.202-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184 kB
  • sloc: perl: 155; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (4)
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 ':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,
	]
);