File: 01-font.t

package info (click to toggle)
libgraphics-primitive-perl 0.67-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 372 kB
  • sloc: perl: 2,586; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Test::More tests => 5;

BEGIN {
    use_ok('Graphics::Primitive::Font');
}

my $obj = Graphics::Primitive::Font->new(
    family    => 'Myriad Pro',
    size    => 15,
    slant   => 'italic',
    weight  => 'bold'
);

cmp_ok($obj->family, 'eq', 'Myriad Pro', 'face');
cmp_ok($obj->size, '==', 15, 'size');
cmp_ok($obj->slant, 'eq', 'italic', 'slant');
cmp_ok($obj->weight, 'eq', 'bold', 'weight');