Debian Codegraph @

t/0ld/3is_null.t

raw
1 use strict;
2 use warnings;
3 use MyTest;
4 use UUID ();
5
6
7 UUID::generate_time(my $bin);
8 ok 1, 'generate';
9
10 is UUID::is_null($bin), 0, 'not null';
11
12 UUID::clear($bin);
13 ok 1, 'clear';
14
15 ok UUID::is_null($bin), 'is null';
16
17 $bin = 'foo';
18 is UUID::is_null($bin), 0, 'bogus null';
19
20 is $bin, 'foo', 'unchanged';
21
22 done_testing;