~ubuntu-branches/ubuntu/quantal/libyaml-tiny-perl/quantal

« back to all changes in this revision

Viewing changes to t/03_regression.t

  • Committer: Bazaar Package Importer
  • Author(s): John Lightsey
  • Date: 2009-09-27 11:51:02 UTC
  • mfrom: (1.1.9 upstream) (4.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090927115102-k3pf0j41ovyjjqre
Tags: 1.40-1
* New upstream release
* Bump standards version to 3.8.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
use File::Spec::Functions ':ALL';
12
12
use t::lib::Test;
13
 
use Test::More tests(37, 0, 10);
 
13
use Test::More tests(37, 0, 11);
14
14
use YAML::Tiny qw{
15
15
        Load     Dump
16
16
        LoadFile DumpFile
654
654
        [ "This&that" ],
655
655
        'Ampersand in a quote',
656
656
);
 
657
 
 
658
 
 
659
 
 
660
 
 
661
 
 
662
######################################################################
 
663
# Check for unescaped boolean keywords
 
664
 
 
665
is_deeply( YAML::Tiny->new( [ qw{
 
666
        null Null NULL
 
667
        y Y yes Yes YES n N no No NO
 
668
        true True TRUE false False FALSE
 
669
        on On ON off Off OFF
 
670
} ] )->write_string, <<'END_YAML' );
 
671
---
 
672
- 'null'
 
673
- 'Null'
 
674
- 'NULL'
 
675
- 'y'
 
676
- 'Y'
 
677
- 'yes'
 
678
- 'Yes'
 
679
- 'YES'
 
680
- 'n'
 
681
- 'N'
 
682
- 'no'
 
683
- 'No'
 
684
- 'NO'
 
685
- 'true'
 
686
- 'True'
 
687
- 'TRUE'
 
688
- 'false'
 
689
- 'False'
 
690
- 'FALSE'
 
691
- 'on'
 
692
- 'On'
 
693
- 'ON'
 
694
- 'off'
 
695
- 'Off'
 
696
- 'OFF'
 
697
END_YAML