Skip to content

test validate-2.2 fails #12

@teclabat

Description

@teclabat
==== validate-2.2 validator throws error FAILED
==== Contents of test case:
 #<<<
        list [catch {
                parse_args::parse_args {-rating ""} {
                        -rating {-validate {tcl::mathop::+ 1}}
                }
        } r o] $r [dict get $o -errorcode]

---- Result was:
1 {Validation failed for "-rating": can't use empty string as operand of "+"} {PARSE_ARGS VALIDATION
 -rating}
---- Result should have been (exact matching):
1 {Validation failed for "-rating": can't use empty string "" as operand of "+"} {PARSE_ARGS VALIDAT
ION -rating}
==== validate-2.2 FAILED

Environment: Windows, msys2, mingw64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions