Permalink
Browse files

[spec] fudged array_extending.t

git-svn-id: http://svn.pugscode.org/pugs@21036 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent a516e9f commit c0eec78f37428ed1a17335415c511e17bd100251 moritz committed Jun 25, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 S02-builtin_data_types/array_extending.t
View
2 S02-builtin_data_types/array_extending.t
@@ -18,6 +18,7 @@ plan 12;
# We've only *accessed* @array[20], but we haven't assigned anything to it, so
# @array shouldn't change. But currently, @array *is* automatically extended,
# i.e. @array is ("a", "b", "c", "d", undef, undef, ...). This is wrong.
+ #?rakudo todo "array bug"
is +@array, 4,
"accessing a not existing array element should not automatically extend the array";
}
@@ -41,6 +42,7 @@ plan 12;
ok !$defined,
'defined @array[$index_out_of_bounds] should be false';
+ #?rakudo todo "array bug"
is +@array, 4,
'defined @array[$index_out_of_bounds] should not have altered @array';
}

0 comments on commit c0eec78

Please sign in to comment.