Skip to content

Commit

Permalink
Make tests adhere to the TAP protocol
Browse files Browse the repository at this point in the history
Each test number should only occur once
  • Loading branch information
lizmat committed Sep 2, 2023
1 parent 1d78555 commit 8b26f4a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions t/01-sanity/13-equal.t
@@ -1,14 +1,14 @@
# Checking that testing is sane: equality and inequality
say '1..4';
say '1..6';

my $x = '0';

($x eq $x) && say 'ok 1';
($x ne $x) && say 'not ok 1';
($x eq $x) || say 'not ok 2';
($x ne $x) || say 'ok 2';
($x ne $x) && say 'not ok 2';
($x eq $x) || say 'not ok 3';
($x ne $x) || say 'ok 4';

($x == $x) && say 'ok 3';
($x != $x) || say 'ok 4';
($x == $x) && say 'ok 5';
($x != $x) || say 'ok 6';

# vim: expandtab shiftwidth=4

0 comments on commit 8b26f4a

Please sign in to comment.