1 |
#!/usr/bin/perl -w |
#!/usr/bin/perl -w |
2 |
|
|
3 |
use strict; |
use strict; |
4 |
use blib; |
use lib 'lib'; |
5 |
|
|
6 |
use Test::More tests => 6; |
use Test::More tests => 6; |
7 |
|
|
19 |
|
|
20 |
ok( $out->init, 'init' ); |
ok( $out->init, 'init' ); |
21 |
|
|
22 |
my $ds = { |
my $ds = { '_rows' => { |
23 |
'_rows' => [ |
'test' => [ |
24 |
{ foo => 42 }, |
{ foo => 42 }, |
25 |
{ foo => 1, bar => 11 }, |
{ foo => 1, bar => 11 }, |
26 |
{ foo => 99, baz => 'text' }, |
{ foo => 99, baz => 'text' }, |
27 |
], |
], |
28 |
}; |
} }; |
29 |
|
|
30 |
ok( $out->add( 42, $ds ), 'add 42' ); |
ok( $out->add( 42, $ds ), 'add 42' ); |
31 |
|
|