From b0443c25dcf4aefda320d90a77d42e1ffe6ceb20 Mon Sep 17 00:00:00 2001 From: "Steven Haryanto (on Asus Zenbook)" Date: Fri, 11 Jan 2013 11:18:57 +0700 Subject: [PATCH] Do not add elems test to str --- devscripts/gen-type-spectest | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/devscripts/gen-type-spectest b/devscripts/gen-type-spectest index b1a78be..57d117e 100755 --- a/devscripts/gen-type-spectest +++ b/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 ) );