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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -943,6 +943,8 @@ sub gen_array_tests {
nok_each_index => [int => xmax => 1], nok_each_index => [int => xmax => 1],
ok_each_elem => "float", ok_each_elem => "float",
nok_each_elem => "int", 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"]}, 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], nok_each_index => [int => xmax => 2],
ok_each_elem => "str", ok_each_elem => "str",
nok_each_elem => "float", 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], nok_each_index => [str => len=>2],
ok_each_elem => "float", ok_each_elem => "float",
nok_each_elem => "int", nok_each_elem => "int",
# currently no elems test yet, elems clause value is currently # currently only array has 'elems' clause, and it's not part of
# array, while indexes of hash are strings. # HasELems role
) )
); );


Expand Down

0 comments on commit b0443c2

Please sign in to comment.