File: test.t

package info (click to toggle)
shared-mime-info 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,528 kB
  • sloc: ansic: 3,791; xml: 2,177; python: 168; sh: 119; javascript: 113; lisp: 28; cobol: 20; makefile: 14; cs: 13; perl: 11; java: 7; objc: 6; php: 1; vhdl: 1
file content (16 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Test::More tests => 4;

my $true_value = !0;
ok( $true_value, "Boolean negation of 0 is true" );

SKIP: {
    skip("Confused implementor", 1);
    is( $true_value, "0 but true", "'0 but true' is true");
}

TODO: {
    local $TODO = "Need fuzzy magic";
    is( $true_value, 0.999999999999999, "True-ish in the fuzzy sense");
}

is( $true_value, 1, "Boolean negation of 0 is 1" );