Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 220
use lib 't', 'lib';
use strict;
use warnings;
package Foo;
use Spiffy -base;
field one => [];
field two => {};
field three => [1..4];
field four => {1..4};
package main;
use Test::More tests => 5;
use Spiffy 'id';
my $f1 = Foo->new;
my $f2 = Foo->new;
ok(id($f1->one) ne id($f2->one));
ok(id($f1->two) ne id($f2->two));
is(scalar(@{$f1->three}), 4);
is_deeply($f1->three, $f2->three);
is_deeply($f1->four, $f2->four);