File: ast-var.t

package info (click to toggle)
libmakefile-parser-perl 0.211-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 560 kB
  • ctags: 556
  • sloc: perl: 7,028; makefile: 263
file content (21 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;
use warnings;
use Test::More tests => 6;
use Makefile::AST::Variable;

my $var = Makefile::AST::Variable->new(
    { name => 'foo',
      value => 'hello',
      flavor => 'simple',
      origin => 'makefile',
    }
);
ok $var, 'var obj ok';
isa_ok $var, 'Makefile::AST::Variable', 'var class ok';
is $var->name, 'foo';
is $var->value, 'hello';
is $var->flavor, 'simple';
is $var->origin, 'makefile';