- Timestamp:
- 02/14/06 20:19:23 (19 years ago)
- Location:
- trunk/t
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/02-filesystem.t
r8 r12 2 2 use strict; 3 3 4 use Test::More 'no_plan'; #tests => 4;4 use Test::More tests => 6; 5 5 BEGIN { use_ok('MP3::Find::Filesystem') }; 6 6 7 7 my $SEARCH_DIR = 't/mp3s'; 8 my $MP3_COUNT = 0; 8 my $EXCLUDE_DIR = 't/mp3s/dont_look_here'; 9 my $MP3_COUNT = 1; 10 my $EXCLUDED_MP3_COUNT = 1; 9 11 10 12 # exercise the object … … 20 22 is(scalar(@res), $MP3_COUNT, 'dir as ARRAY ref'); 21 23 24 # exclude 25 @res = $finder->find_mp3s(dir => $SEARCH_DIR, exclude_path => $EXCLUDE_DIR); 26 is(scalar(@res), $MP3_COUNT - $EXCLUDED_MP3_COUNT, 'excluded directory'); 27 28 @res = $finder->find_mp3s(dir => $SEARCH_DIR, exclude_path => [$EXCLUDE_DIR]); 29 is(scalar(@res), $MP3_COUNT - $EXCLUDED_MP3_COUNT, 'excluded directory as array'); 30 22 31 #TODO: get some test mp3s -
trunk/t/03-db.t
r10 r12 19 19 my $SEARCH_DIR = 't/mp3s'; 20 20 my $DB_FILE = 't/mp3.db'; 21 my $MP3_COUNT = 0;21 my $MP3_COUNT = 1; 22 22 23 23 # exercise the object
Note: See TracChangeset
for help on using the changeset viewer.