Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

GCI - RT #76046 #9

Merged
merged 1 commit into from

2 participants

@djanatyn

Tried to understand the problem behind the bug, and to come up with a good test for this bug. I came up with

is (1, 1, &[+] ... *).munch(10), '1 1 2 3 5 8 13 21 34 55', 'use &[+] on infix:<...> series';

which I think would work to ensure that the issue doesn't come up again. Still, I'm aware that it doesn't really seem to be the best test, and being new to TDD, I'm really curious as to how it could be improved. Lots of help from #perl6, thanks :)

@moritz moritz merged commit fcb6304 into perl6:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 6, 2011
  1. @djanatyn
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 S03-sequence/basic.t
View
5 S03-sequence/basic.t
@@ -3,7 +3,7 @@ use Test;
# L<S03/List infix precedence/"the sequence operator">
-plan 124;
+plan 125;
# single-term sequence
@@ -243,6 +243,9 @@ eval_dies_ok '1, 2, 3, ... 5', 'comma before sequence operator is caught';
# RT #73268
is ~(1...^*).munch(10), '1 2 3 4 5 6 7 8 9 10', 'RT #73268';
+# RT #76046
+is (1, 1, &[+] ... *).munch(10), '1 1 2 3 5 8 13 21 34 55', 'use &[+] on infix:<...> series';
+
done;
# vim: ft=perl6
Something went wrong with that request. Please try again.