Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added tests for RT86764 Array method on parcel

  • Loading branch information...
commit 3977901182bb3ca9219b5ca902ece1eb8adaf845 1 parent 4806917
Patrick Abi Salloum patrickas authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 S02-builtin_data_types/parcel.t
6 S02-builtin_data_types/parcel.t
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.