File: import-options.t

package info (click to toggle)
libtype-tiny-perl 2.004000-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,856 kB
  • sloc: perl: 14,858; makefile: 2; sh: 1
file content (13 lines) | stat: -rw-r--r-- 228 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;
use Test::More;

use Type::Tiny::Bitfield (
	Colour  => { RED => 0x01, BLUE => 0x02, GREEN => 0x04, -prefix => 'My' },
);

is( MyColour->display_name, 'Colour' );

is( MyCOLOUR_RED, 1 );

done_testing;