Skip to content

bug: fails to create proper iso strings #571

@Brandon-Perry

Description

@Brandon-Perry

@traversable/zod-test 0.0.28
@traversable/zod-types 0.0.30
fast-check 4.6.0

const datestr = z.iso.date()

const testDatestr = fuzz(datestr)

console.log(FastCheck.sample(testDatestr).slice(0,10))

[ '', '+}PrY[D0@', 't', '^r', '', '5-[=,~u5&>', '"', 'QO', '', '#re|' ]


const datetimestr = z.iso.datetime()

const tesetDateTimeStr = fuzz(datetimestr)

console.log(FastCheck.sample(tesetDateTimeStr).slice(0,10))

[
  "'",      'kke',
  'el',     'l.',
  'mjb~)h', '9SI',
  '',       'kP@Ih7@J',
  '',       'cgJwX.8:'
]




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