Permalink
Browse files

Added tests for RT86764 Array method on parcel

  • Loading branch information...
1 parent 4806917 commit 3977901182bb3ca9219b5ca902ece1eb8adaf845 @patrickas patrickas committed Mar 22, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 S02-builtin_data_types/parcel.t
View
6 S02-builtin_data_types/parcel.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 8;
+plan 11;
isa_ok (5, 7, 8), Parcel, '(5, 7, 8) is Parcel';
is +(5, 7, 8), 3, 'prefix:<+> on a Parcel';
@@ -16,5 +16,9 @@ is +<5 7 8>, 3, 'prefix:<+> on an angle bracket Parcel';
is ~<5 7 8>, '5 7 8', 'prefix:<~> on an angle bracket Parcel';
is <5 7 8>.Str, '5 7 8', '.Str on an angle bracket Parcel';
+isa_ok (5, 7, 8).Array, Array, '.Array returns an array';
+is (5, 7, 8).Array, [5,7,8], '.Array contains the right items';
+is (5, 7, 8).Array.elems, 3, '.Array contains the right number of elements';
+
# vim: ft=perl6

0 comments on commit 3977901

Please sign in to comment.