Skip to content

Commit 8c8ff30

Browse files
author
Carl Masak
committed
s/shift/control/g in strings in 01-continuations.t
1 parent 2eed549 commit 8c8ff30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/jvm/01-continuations.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ plan(22);
2929
# nqp::continuationcontrol(0, nqp::null(), { $run++ });
3030
# CATCH { $ex := $! }
3131
# }
32-
# ok( $ex ~~ /'no matching'/, 'shift dies with no reset' );
32+
# ok( $ex ~~ /'no matching'/, 'control dies with no reset' );
3333
# ok( $run == 0, '...without running argument' );
3434

3535
# $ex := '';
@@ -59,12 +59,12 @@ plan(22);
5959
ok( $log eq '123', 'control returns from reset' );
6060
ok( $savecont, 'got a continuation' );
6161

62-
ok( $reset_returned == 10, 'shift argument return value is reset return value' );
62+
ok( $reset_returned == 10, 'control argument return value is reset return value' );
6363

6464
$log := '';
6565
$reset_returned := nqp::continuationinvoke($savecont, { $log := $log ~ '5'; 15 });
6666
ok( $log eq '54', 'continuation invoke "returns" from control');
67-
ok( $shift_returned == 15, 'continuation invoke argument is shift return value' );
67+
ok( $shift_returned == 15, 'continuation invoke argument is control return value' );
6868
ok( $reset_returned == 30, 'reset block return value is continuation invoke return value' );
6969

7070
ok( nqp::continuationinvoke($savecont, {25}) == 50, 'continuation can be used more than once' );
@@ -94,7 +94,7 @@ plan(22);
9494
nqp::continuationcontrol(0, nqp::null(), -> $c { 42 });
9595
10;
9696
}) * 3;
97-
}) == 126, 'null shift matches innermost level');
97+
}) == 126, 'null control matches innermost level');
9898

9999
my $cont := nqp::continuationreset($A, {
100100
nqp::continuationreset($B, {

0 commit comments

Comments
 (0)