IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3486


Ignore:
Timestamp:
Mar 23, 2005, 12:07:49 PM (21 years ago)
Author:
jhoblitt
Message:

fix broken tests

Location:
trunk/PS-IPP-Metadata-Config/t
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Metadata-Config/t/03_metadata.t

    r3478 r3486  
    33# Copyright (C) 2005  Joshua Hoblitt
    44#
    5 # $Id: 03_metadata.t,v 1.1 2005-03-23 01:53:55 jhoblitt Exp $
     5# $Id: 03_metadata.t,v 1.2 2005-03-23 22:07:49 jhoblitt Exp $
    66
    77use strict;
     
    1212#$::RD_TRACE = 1;
    1313
    14 use Test::More tests => 5;
     14use Test::More tests => 6;
    1515use PS::IPP::Metadata::Config;
    1616
     
    102102                        BAR     STR BAZ
    103103                        PING    STR PONG
     104                    END
     105                END
     106            END
     107        END
     108    END
     109END
     110};
     111    my $config = $config_parser->parse( $example );
     112
     113    ok( defined( $config ), "deeply nested metadata");
     114}
     115
     116{
     117my $example = q{
     118FOO1 METADATA
     119    BAR     STR BAZ
     120    FOO2 METADATA
     121        BAR     STR BAZ
     122        FOO3 METADATA
     123            BAR     STR BAZ
     124            FOO4 METADATA
     125                BAR     STR BAZ
     126                FOO5 METADATA
     127                    BAR     STR BAZ
     128                    FOO6 METADATA
    104129                        BAR     STR BAZ
    105130                        PING    STR PONG
    106131                    END
    107                     BAR     STR BAZ
    108132                    PING    STR PONG
    109133                END
    110                 BAR     STR BAZ
    111134                PING    STR PONG
    112135            END
    113             BAR     STR BAZ
    114136            PING    STR PONG
    115137        END
    116         BAR     STR BAZ
    117138        PING    STR PONG
    118139    END
    119     BAR     STR BAZ
    120140    PING    STR PONG
    121141END
  • trunk/PS-IPP-Metadata-Config/t/06_multi.t

    r3484 r3486  
    33# Copyright (C) 2005  Joshua Hoblitt
    44#
    5 # $Id: 06_multi.t,v 1.2 2005-03-23 19:27:25 jhoblitt Exp $
     5# $Id: 06_multi.t,v 1.3 2005-03-23 22:03:52 jhoblitt Exp $
    66
    77use strict;
     
    6161bar METADATA
    6262    foo S8      -1
     63    foo STR     bar baz
    6364END
    6465};
     
    7374END
    7475foo S8      -1
     76foo STR     bar baz
    7577};
    7678    my $config = $config_parser->parse( $example );
Note: See TracChangeset for help on using the changeset viewer.