IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2007, 4:27:32 PM (19 years ago)
Author:
jhoblitt
Message:

fix 'string' parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Metadata-Config/t/08_strings.t

    r9849 r14032  
    33# Copyright (C) 2006  Joshua Hoblitt
    44#
    5 # $Id: 08_strings.t,v 1.2 2006-11-04 01:25:32 jhoblitt Exp $
     5# $Id: 08_strings.t,v 1.3 2007-07-06 02:27:32 jhoblitt Exp $
    66
    77use strict;
     
    1212#$::RD_TRACE = 1;
    1313
    14 use Test::More tests => 4;
     14use Test::More tests => 6;
    1515use PS::IPP::Metadata::Config;
    1616
     
    7474    is_deeply( $config, $tree, "NULL str structure" );
    7575}
     76
     77{
     78my $example =<<END;
     79mystr   STR     # some comment
     80END
     81
     82    my $config = $config_parser->parse( $example );
     83    ok(!defined( $config ), "STR without value");
     84
     85    is_deeply( $config, undef, "NULL str structure" );
     86}
Note: See TracChangeset for help on using the changeset viewer.