# Stolen from Mac::PropertyList (by comdog) for use in Mac::PropertyList::SAX (by kulp) use Test::More tests => 3; BEGIN { use_ok( 'Mac::PropertyList::SAX' ); } my $good_dict =<<"HERE"; 0 Roscoe Buster HERE my $bad_dict =<<"HERE"; Roscoe HERE my $ok = eval { my $plist = Mac::PropertyList::SAX::parse_plist( $good_dict ); }; ok( $ok, "Zero and space are valid key values" ); TODO: { local $TODO = "Doesn't work, but poor Andy doesn't know why."; my $ok = eval { my $plist = Mac::PropertyList::SAX::parse_plist( $good_dict ); }; like( $@, qr/key not defined/, "Empty key causes parse_plist to die" ); }