New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating non-scalar values #35
Comments
Strings should work , can you paste up some sample code with errosr? |
property("loading a file correctly creates the dictionary").
forAll{s: Set<String> ->
val w = s
var result = true
w.forEach{item ->
if (!(item in s)) {
result = false
}
}
result
}
} seems to generate:
|
Oh I see, a Set of Strings. Yes that's not supported natively (but should be), but you can make your own instance of |
For generating
would this be seen as idiomatic KotlinTest? |
Yes it looks good. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The property-based testing seems to be able to automatically generate integers (and I assume floats, etc), but I need to be able to generate sets of strings. I am guessing this is handled as yet as I am getting lots of incomprehensible messages when I try it.
Is there an idiomatic way of handling this immediately?
The text was updated successfully, but these errors were encountered: