Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add constant with ... test.
  • Loading branch information
jnthn committed Mar 1, 2012
1 parent a84a160 commit fbfc883
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions S04-declarations/constant.t
Expand Up @@ -294,6 +294,11 @@ use Test;
ok Yak === F::B::c, 'can use "constant" to alias an enum value';
}

{
constant fib := 0, 1, *+* ... *;
is fib[100], 354224848179261915075, 'can have a constant using a sequence and index it';
}

done;

# vim: ft=perl6

0 comments on commit fbfc883

Please sign in to comment.