Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

GCI - RT #76046 #9

Merged
merged 1 commit into from over 2 years ago

2 participants

Jonathan Strickland Moritz Lenz
Jonathan Strickland

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 Lenz moritz merged commit fcb6304 into from December 05, 2011
Moritz Lenz moritz closed this December 05, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Dec 05, 2011
Jonathan Strickland RT #76046: &[+] in infix:<...> 5d94616
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  S03-sequence/basic.t
5  S03-sequence/basic.t
@@ -3,7 +3,7 @@ use Test;
3 3
 
4 4
 # L<S03/List infix precedence/"the sequence operator">
5 5
 
6  
-plan 124;
  6
+plan 125;
7 7
 
8 8
 # single-term sequence
9 9
 
@@ -243,6 +243,9 @@ eval_dies_ok '1, 2, 3, ... 5', 'comma before sequence operator is caught';
243 243
 # RT #73268
244 244
 is ~(1...^*).munch(10), '1 2 3 4 5 6 7 8 9 10', 'RT #73268';
245 245
 
  246
+# RT #76046
  247
+is (1, 1, &[+] ... *).munch(10), '1 1 2 3 5 8 13 21 34 55', 'use &[+] on infix:<...> series';
  248
+
246 249
 done;
247 250
 
248 251
 # vim: ft=perl6
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.