Permalink
Browse files

Do not add elems test to str

  • Loading branch information...
1 parent 58d0745 commit b0443c25dcf4aefda320d90a77d42e1ffe6ceb20 Steven Haryanto (on Asus Zenbook) committed Jan 11, 2013
Showing with 7 additions and 3 deletions.
  1. +7 −3 devscripts/gen-type-spectest
@@ -943,6 +943,8 @@ sub gen_array_tests {
nok_each_index => [int => xmax => 1],
ok_each_elem => "float",
nok_each_elem => "int",
+ # 'elems' is actually not part of HasElems currently, but we stick
+ # it in here for the moment. str might get 'elems' too.
elems_test => {value=>[1, 1.2], ok=>["int","float"], nok=>["int","int"]},
),
);
@@ -1049,7 +1051,9 @@ sub gen_str_tests {
nok_each_index => [int => xmax => 2],
ok_each_elem => "str",
nok_each_elem => "float",
- elems_test => {value=>"abc", ok=>["str","str","str"], nok=>["str","str",[str=>is=>"d"]]},
+ # currently only array has 'elems' clause, and it's not part of
+ # HasELems role
+ #elems_test => {value=>"abc", ok=>["str","str","str"], nok=>["str","str",[str=>is=>"d"]]},
),
{
@@ -1138,8 +1142,8 @@ sub gen_hash_tests {
nok_each_index => [str => len=>2],
ok_each_elem => "float",
nok_each_elem => "int",
- # currently no elems test yet, elems clause value is currently
- # array, while indexes of hash are strings.
+ # currently only array has 'elems' clause, and it's not part of
+ # HasELems role
)
);

0 comments on commit b0443c2

Please sign in to comment.