#
# compare v6 to v0.
#
use strict;
use warnings;
use MyTest;
use UUID ':all';

ok 1, 'loaded';

{# binary
    generate_v6(my $u6);
    generate_v0(my $u0);
    ok   is_null($u0),         'is null';
    isnt $u6, $u0,             'binary not null';
    is   compare($u6, $u0), 1, 'greater than binary';
}

{# string
    my $u6 = uuid6();
    my $u0 = uuid0();
    isnt $u6, $u0,             'string not null';
    is   compare($u6, $u0), 1, 'greater than string';
}

done_testing;
