File: 3type.t

package info (click to toggle)
libuuid-perl 0.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,092 kB
  • sloc: ansic: 2,374; perl: 580; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;
use Test::More;
use MyNote;
use UUID ();


#... uuid.h ...
#define UUID_TYPE_DCE_TIME   1
#define UUID_TYPE_DCE_RANDOM 4

UUID::generate_time(my $bin1);
is UUID::type($bin1), 1, 'UUID type time';

UUID::generate_random(my $bin2);
is UUID::type($bin2), 4, 'UUID type random';

done_testing;