Skip to content

Commit c03a941

Browse files
committed
Simplify some tests
1 parent a7550db commit c03a941

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

S17-concurrency/supply.t

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,14 @@ for (ThreadPoolScheduler, CurrentThreadScheduler) {
6868
tap_ok $s, [1..10], "Second tap gets all the values";
6969
}
7070

71-
{
72-
my $s = (1..10).Supply;
73-
tap_ok $s, [1..10], "Supply coercer worked on Range";
74-
}
71+
tap_ok (1..10).Supply,
72+
[1..10], "Supply coercer worked on Range";
7573

76-
{
77-
my $s = (1,2,3,4,5,6,7,8,9,10).Supply;
78-
tap_ok $s, [1..10], "Supply coercer worked on Parcel";
79-
}
74+
tap_ok (1,2,3,4,5,6,7,8,9,10).Supply,
75+
[1..10], "Supply coercer worked on Parcel";
8076

81-
{
82-
my $s = "food".Supply;
83-
tap_ok $s, [<food>], "Supply coercer worked on scalar";
84-
}
77+
tap_ok "food".Supply,
78+
[<food>], "Supply coercer worked on scalar";
8579

8680
{
8781
my $seen;

0 commit comments

Comments
 (0)