5 eval "use DBD::SQLite";
6 plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6);
14 my $it = DBICTest::CD->search( {},
18 is( $it->count, 3, "count ok" );
19 is( $it->next->title, "Caterwaulin' Blues", "iterator->next ok" );
22 is( $it->next, undef, "next past end of resultset ok" );
25 my @cds = DBICTest::CD->search( {},
30 is( $cds[0]->title, "Spoonful of bees", "offset ok" );
32 # based on a failing criteria submitted by waswas
33 # requires SQL::Abstract >= 1.20
34 $it = DBICTest::CD->search(
41 -not_like => 'Forkful%'
47 is( $it->count, 1, "complex abstract count ok" );