Changeset 9849 for trunk/PS-IPP-Metadata-Config/t/08_strings.t
- Timestamp:
- Nov 3, 2006, 3:25:32 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-Metadata-Config/t/08_strings.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Metadata-Config/t/08_strings.t
r9161 r9849 3 3 # Copyright (C) 2006 Joshua Hoblitt 4 4 # 5 # $Id: 08_strings.t,v 1. 1 2006-10-04 01:24:03jhoblitt Exp $5 # $Id: 08_strings.t,v 1.2 2006-11-04 01:25:32 jhoblitt Exp $ 6 6 7 7 use strict; … … 12 12 #$::RD_TRACE = 1; 13 13 14 use Test::More tests => 2;14 use Test::More tests => 4; 15 15 use PS::IPP::Metadata::Config; 16 16 … … 45 45 is_deeply( $config, $tree, "str structure" ); 46 46 } 47 48 { 49 my $example =<<END; 50 mystr MULTI 51 mystr STR NULL 52 mystr STR NULL # some comment 53 END 54 55 my $config = $config_parser->parse( $example ); 56 ok( defined( $config ), "NULL strs parsed"); 57 58 my $tree = [ 59 { 60 name => 'mystr', 61 class => 'scalar', 62 type => 'STR', 63 value => undef, 64 }, 65 { 66 name => 'mystr', 67 class => 'scalar', 68 type => 'STR', 69 value => undef, 70 comment => 'some comment', 71 }, 72 ]; 73 74 is_deeply( $config, $tree, "NULL str structure" ); 75 }
Note:
See TracChangeset
for help on using the changeset viewer.
