Comments (6)
from fscheck.
Per #638, I have a:
module ArbMap =
let defGen<'t> = ArbMap.defaults |> ArbMap.generate<'t>
That I sprinkle around
The changes are listed in https://github.com/fscheck/FsCheck/blob/master/FsCheck%20Release%20Notes.md
🤔 (I found it by searching for generate
) Perhaps there could be an explicit long form summary of moved methods in there so people can search for the string Arb.generate
etc ? Or maybe if the changelog was formatted a la KeepAChangeLog e.g. https://github.com/jet/equinox/blob/master/CHANGELOG.md#changed, then you could look up Arb
in the changes ?
from fscheck.
What would help me - as someone new to the library in general - is a very basic example of how to use the built in generators to build your own generators.
Per #638, I have a:
module ArbMap = let defGen<'t> = ArbMap.defaults |> ArbMap.generate<'t>That I sprinkle around
This is equivalent to the old Arb.generate?
from fscheck.
Yes - it's equivalent. See this PR for some code that uses it https://github.com/jet/equinox/pull/412/files
In general I'd recommend downloading the FsCheck solution and doing a text search within in - there's some examples and you also get to see the relationships. The changelog linked above actually does detail the transitions quite well if you read it carefully, but I've been in your shoes wondering where all the cheese has gone and when the yaks are going to part ways and let you move on, so I can definitely empathise...
from fscheck.
Related Issues (20)
- FsCheck.NUnit does not properly handle NUnit's signalling exceptions. HOT 1
- Question: how to create dependent properties? HOT 13
- Using `Collect` and `Classify` in conjunction with `And` or `Or` HOT 1
- Make generative collection types `IEnumerable` compatible
- Model-based testing seems to ignore command preconditions when model implementation is mutable? HOT 2
- How to globally register arbitraries in 3.x HOT 4
- Allow asynchronous tests to run on Task<'a> HOT 8
- xUnit analyzer emits errors on Property tests HOT 6
- NUnit question/ request? HOT 14
- Feature: In-box shortcut to obtain default generator for a type HOT 6
- XUnit tests marked with [Property] fail to run on .NET Framework HOT 3
- FsCheck not registering a static method that takes Arbitrary<TType> in C# HOT 7
- How to generate instances of more complicated data structures HOT 3
- The type 'Config' does not define the field, constructor or member 'WithArbitrary' HOT 2
- feat(FsCheck.Xunit): Support xUnit >= 2.5, < 3 HOT 1
- Modelbased testing? HOT 3
- Expose `Gen.choose64` HOT 1
- feat(FsCheck.NUnit): Support NUnit >= 4.0.0 HOT 1
- Model-based testing examples in C#? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fscheck.