Skip to content

Commit

Permalink
Do not add elems test to str
Browse files Browse the repository at this point in the history
  • Loading branch information
sharyanto committed Jan 11, 2013
1 parent 58d0745 commit b0443c2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions devscripts/gen-type-spectest
Expand Up @@ -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"]},
),
);
Expand Down Expand Up @@ -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"]]},
),

{
Expand Down Expand Up @@ -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
)
);

Expand Down

0 comments on commit b0443c2

Please sign in to comment.