~ubuntu-branches/debian/sid/libjson-any-perl/sid

« back to all changes in this revision

Viewing changes to t/12-boolean.t

  • Committer: Package Import Robot
  • Author(s): gregor herrmann
  • Date: 2014-10-13 20:38:46 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20141013203846-epckc6ugcuaxw3bh
Tags: 1.38-1
* Import upstream version 1.38
* Mark package as autopkgtest-able.
* Declare compliance with Debian Policy 3.9.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
                "inflated '$bool'",
46
46
            );
47
47
 
48
 
            cmp_ok( $data, 'xor', !Boolean->$bool, "$bool evaluates to $bool" );
 
48
            ok( ($data xor !Boolean->$bool), "$bool evaluates to $bool" );
49
49
 
50
50
            is(
51
51
                exception { $data = JSON::Any->$bool },
53
53
                "JSON::Any->$bool returned a value",
54
54
            );
55
55
 
56
 
            cmp_ok( $data, 'xor', !Boolean->$bool, "JSON::Any->$bool evaluates to $bool" );
 
56
            ok( ($data xor !Boolean->$bool), "JSON::Any->$bool evaluates to $bool" );
57
57
        }
58
58
    };
59
59
}