Changeset 6606 for trunk/DataStore/t/03_file_parse.t
- Timestamp:
- Mar 16, 2006, 11:51:46 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/DataStore/t/03_file_parse.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/t/03_file_parse.t
r6501 r6606 3 3 # Copyright (C) 2006 Joshua Hoblitt 4 4 # 5 # $Id: 03_file_parse.t,v 1. 3 2006-02-28 03:02:12jhoblitt Exp $5 # $Id: 03_file_parse.t,v 1.4 2006-03-16 21:51:46 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use lib qw( ./lib ./t ); 11 11 12 use Test::More tests => 4 5;12 use Test::More tests => 46; 13 13 use Test::Warn; 14 14 … … 128 128 otis0123456.04|83002312|7bb35e1e30f3f833c0416aea75f90304|chip|ota04 | 129 129 END 130 my @results = DataStore::File::Parser->new->parse($example1); 131 is(scalar @results, 4, "correct number of item returned in list context"); 132 } 133 134 { 135 # multi-row example 136 my $example1 =<<END; 137 # fileID |bytes |md5sum |type|chipname| 138 otis0123456.01|83002312|fe6a2b6564c0d4cfb3bbf1db813824ba|chip|ota01 | 139 otis0123456.02|83002312|a2b4a7d7b94dc6076c5f3f67239a48c6|chip|ota02 | 140 otis0123456.03|83002312|a39b1510484c7833e27454b181f13981|chip|ota03 | 141 otis0123456.04|83002312|7bb35e1e30f3f833c0416aea75f90304|chip|ota04 | 142 END 130 143 my $results = DataStore::File::Parser->new->parse($example1); 131 144 132 is(scalar @$results, 4, "correct number of item returned"); 145 is(scalar @$results, 4, 146 "correct number of item returned in scalar context"); 133 147 134 148 isa_ok(@$results[0], 'DataStore::File');
Note:
See TracChangeset
for help on using the changeset viewer.
