Skip to content

GT(0) doesn't give a validation error for a 0 input #189

@carnage-mode

Description

@carnage-mode

Before you begin

  • I have read the FAQ and my issue was not answered there

What version of Zog are you using
v0.21.6

Describe the bug
zog.Ptr(z.Int32().GT(0)).NotNil() doesnt error out when I supply it a 0 when used to validate

To Reproduce
Since this is a small example I'm providing a gist:
https://gist.github.com/carnage-mode/3a3e32eaa765f5b461c01d47891a211b

Expected behavior
To error out when 0 is supplied as input

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions