Skip to content

Commit 74ad6f7

Browse files
committed
Added plan, removed "done" where appropriate
1 parent 9d1bcb0 commit 74ad6f7

File tree

10 files changed

+11
-22
lines changed

10 files changed

+11
-22
lines changed

S02-lexical-conventions/comments.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use v6;
33
# Test various forms of comments
44

55
use Test;
6+
plan 51;
67

78
# L<S02/"Embedded Comments"/"Embedded comments"
89
# "#" plus any bracket>
@@ -220,6 +221,4 @@ is $outerVal, 22, 'Single paragraph Pod, multiple lines parses to whitespace in
220221
221222
}}, 'Single paragraph Pod, multiple lines eval throws no error' );
222223

223-
done;
224-
225224
# vim: ft=perl6

S02-literals/version.t

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use v6;
22
use Test;
3+
plan 28;
34

45
is v1.2.3, '1.2.3', 'version literal stringification';
56
is v1.2.3+, '1.2.3+', 'version literal stringification';
@@ -30,6 +31,3 @@ is v1.2 cmp v1.10, Less, "cmp isn't Stringy-based";
3031
ok v1.2 eqv v1.2.0, 'trailing zeroes are equivalent';
3132
ok v1.2.0 eqv v1.2, 'trailing zeroes are equivalent';
3233
ok v1.2.0 eqv v1.2.0.0.0.0.0, 'trailing zeroes are equivalent';
33-
34-
done;
35-

S02-magicals/78258.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use v6;
22

33
use lib 't/spec/S02-magicals';
4-
use UsedEnv;
4+
use UsedEnv; # contains plan
55

S02-names-vars/perl.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use v6;
22
use Test;
3+
plan 98;
34
# L<S02/Names and Variables/To get a Perlish representation of any object>
45

56
#?pugs emit plan 89;
@@ -199,6 +200,4 @@ my @tests = (
199200
is EVAL($a.perl).decode("utf8"), "asdf";
200201
}
201202

202-
done;
203-
204203
# vim: ft=perl6

S03-metaops/reduce.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use v6;
22
use Test;
3+
plan 366;
34

45
=begin pod
56
@@ -381,6 +382,4 @@ ok ([+]) == 0, 'argumentless [+] parses';
381382
{
382383
is(([X~] <a b>, <a b>, <a b>), <aaa aab aba abb baa bab bba bbb>, 'reduce with X');
383384
}
384-
385-
done;
386385
# vim: ft=perl6

S03-operators/andthen.t

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use v6;
22
use Test;
3+
plan 8;
34

45
is (1 andthen 2), 2, 'andthen basics';
56
is (1 andthen 2 andthen 3), 3, 'andthen chained';
@@ -11,6 +12,3 @@ nok (Int andthen ($tracker = 1)), 'sanity';
1112
nok $tracker, 'andthen thunks';
1213

1314
my $ = 'some arg' andthen -> $x { is $x, 'some arg', 'andthen passes on arguments' };
14-
15-
16-
done;

S03-sequence/misc.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use v6;
22
use Test;
3+
plan 19;
34

45

56
# L<S03/List infix precedence/constraints implied by the signature of the function>
@@ -95,6 +96,4 @@ is (1, { $^n*2 + 1 } ... 31, *+5 ... { $^n**2 < 2000 }, 'a', *~'z' ... { $_.char
9596
is @rt80574[0], 'zero', 'Generator output is flattened';
9697
}
9798

98-
done;
99-
10099
# vim: ft=perl6

S03-smartmatch/any-sub.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use v6;
22
use Test;
3+
plan 8;
34

45
#L<S03/Smart matching/Any .(...) sub call truth>
56
{
@@ -18,6 +19,4 @@ use Test;
1819
ok (0 ~~ $sub), '~~ sub call truth (-,2)';
1920
}
2021

21-
done;
22-
2322
# vim: ft=perl6

S04-declarations/constant.t

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22

33
use Test;
4-
4+
plan 48;
55

66
# L<S04/The Relationship of Blocks and Declarations/"The new constant declarator">
77

@@ -310,6 +310,4 @@ use Test;
310310
is B::a, 3, 'escaped constant declaration in class';
311311
}
312312

313-
done;
314-
315313
# vim: ft=perl6

S04-statements/if.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use v6;
22

33
use Test;
44

5+
plan 29;
6+
57
=begin kwid
68
79
Basic "if" tests.
@@ -11,8 +13,6 @@ Basic "if" tests.
1113

1214
# L<S04/Conditional statements>
1315

14-
plan 29;
15-
1616
my $x = 'test';
1717
if ($x eq $x) { pass('if ($x eq $x) {} works'); } else { flunk('if ($x eq $x) {} failed'); }
1818
if ($x ne $x) { flunk('if ($x ne $x) {} failed'); } else { pass('if ($x ne $x) {} works'); }

0 commit comments

Comments
 (0)