Git Product home page Git Product logo

Comments (6)

kurtschelfthout avatar kurtschelfthout commented on May 25, 2024 1

StringNoNulls just removes \000 characters:

static member val StringNoNulls =

Try NonEmptyString instead, or the generic NonNull<string>.

from fscheck.

bartelink avatar bartelink commented on May 25, 2024 1

StringNoNulls just removes \000 characters:

Then it should be called StringNoNuls 😆

from fscheck.

bartelink avatar bartelink commented on May 25, 2024

Not familiar enough with the C# consumption model, but f you're using V3, strings are never null ? (The docs are per V3 -rc1 already anyway, and most people use that)

from fscheck.

baynezy avatar baynezy commented on May 25, 2024

@bartelink - I am using version 2.16.6 of FsCheck.Xunit

from fscheck.

bartelink avatar bartelink commented on May 25, 2024

Yes - as mentioned, its not impossible to make it work, but I don't know what's going wrong
But I'm telling you that one way to resolve it is to sidestep it by going to V3, which would never pass you null for a String input.
Obviously moving to V3 may entail navigating some breaking changes though

from fscheck.

baynezy avatar baynezy commented on May 25, 2024

@kurtschelfthout - thanks so much.

NonNull<string> was just the ticket.

from fscheck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.