Index: openacs-4/packages/acs-templating/tcl/test/data-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/test/data-procs.tcl,v diff -u -r1.1.2.7 -r1.1.2.8 --- openacs-4/packages/acs-templating/tcl/test/data-procs.tcl 28 Jun 2021 10:05:14 -0000 1.1.2.7 +++ openacs-4/packages/acs-templating/tcl/test/data-procs.tcl 28 Jun 2021 10:15:21 -0000 1.1.2.8 @@ -209,6 +209,29 @@ } } +aa_register_case -cats { + api + smoke + production_safe +} -procs { + template::data::validate + template::data::validate::string +} validate_string { + Test validation for string data types + + @author Héctor Romojaro + @creation-date 28 June 2021 +} { + # + # Currently, all submitted strings to the validator are valid... + # + set string_true {"" "my string" "lalala"} + set message "" + foreach value $string_true { + aa_true "Is $value a string?" [template::data::validate string value message] + } +} + # Local variables: # mode: tcl # tcl-indent-level: 4