Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add tests for RT #75674

  • Loading branch information...
commit df13d545c64ec7a18c5351e44ec65dc2ca6ed34b 1 parent c892865
Will Coleda authored November 13, 2012

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

  1. 9  S03-sequence/basic.t
9  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 126;
  6
+plan 129;
7 7
 
8 8
 # single-term sequence
9 9
 
@@ -254,6 +254,13 @@ is (1, 1, &[+] ... *).[^10], '1 1 2 3 5 8 13 21 34 55', 'use &[+] on infix:<...>
254 254
 # previously rakudo said Not enough positional parameters passed; got 3 but expected 4
255 255
 is ((1,1,2,4,8)[^4], *+*+*+* ... *)[4], 8, 'WhateverCode with arity > 3 gets enough arguments';
256 256
 
  257
+#RT #75674
  258
+{
  259
+    is (4 ... ^5), <4 3 2 1 0 1 2 3 4>, "RT #75674";
  260
+    is (4 ... 0,1,2,3,4), <4 3 2 1 0 1 2 3 4>, "RT #75674";
  261
+    is (-5 ... ^5), <-5 -4 -3 -2 -1 0 1 2 3 4>, "RT #75674";
  262
+}
  263
+
257 264
 done;
258 265
 
259 266
 # vim: ft=perl6

0 notes on commit df13d54

Please sign in to comment.
Something went wrong with that request. Please try again.