File: 05_prototype.t

package info (click to toggle)
libunconstant-perl 0.09-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 132 kB
  • sloc: perl: 224; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 285 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 constant BEFORE => 10;

use unconstant;

use constant AFTER => 10;

my $before = BEFORE + 10;
is( $before, 20, 'constants parsed as expected' );

my $after = AFTER + 10;
is( $after, 20, 'unconstants parsed as expected' );


done_testing;