-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add support for FSharpList #322
Comments
Thanks for opening the first F# issue we ever had. |
@dupdob Oh wow :) I just started playing around with F# two days ago (as my first CLR language). I'm from a JVM background and I've been using assertj heavily for many years and I was glad to find this lib. |
Hello!
It's not the lack of support in NFluent here, it's that F# will not implicitely cast from FSharpList to IEnumerable. |
@pirrmann Interesting point. But for me at least, I think that it would be ok to add a small wrapper for I.e. the problem I have today is that this doesn't work: let myList : int list = [1;2;3]
Check.That(events).Contains(1, 2, 3) But if I simply change the code to this it works (or if I cast it to let myList : int seq = [1;2;3] |> Seq.ofList
Check.That(events).Contains(1, 2, 3) If NFluent would provide a WDYT? |
It would be great if NFluent would add support for asserting elements in an
FSharpList
the same way you can do on aSeq
orList
. I.e. allow this:The text was updated successfully, but these errors were encountered: