Skip to content

null string not generated by default #30

@mathias-brandewinder

Description

@mathias-brandewinder

Consider the following:

let longEnough (s:string) = s.Length > 10
let check (s:string) =
s.Length <= 10 ==> (longEnough s = false)
Check.Quick check

let (bad:string) = null
longEnough (bad)

I would have expected FsCheck to propose a null string as a counter-example. Would love to hear if this is by design (and why), or by accident.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions