Skip to content

Commit 1da17b7

Browse files
dogbert17zoffixznet
authored andcommitted
Test for RT 128717 (#250)
1 parent c4ff5ce commit 1da17b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

S17-supply/syntax.t

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 71;
4+
plan 72;
55

66
{
77
my $s = supply {
@@ -329,6 +329,13 @@ plan 71;
329329
is $i, 2, 'react/whenever with supply that immediately emits values works';
330330
}
331331

332+
# RT #128717
333+
{
334+
my $i = 0;
335+
react whenever Supply.interval: 0.01 { done() if $_ == 3; $i++ }
336+
is $i, 3, 'blockless react/whenever works';
337+
}
338+
332339
{
333340
my $trigger1 = Supplier.new;
334341
my $trigger2 = Supplier.new;

0 commit comments

Comments
 (0)