Last active
August 29, 2015 14:16
-
-
Save moodmosaic/7fba17beae7cee92581a to your computer and use it in GitHub Desktop.
Feedback, related to an answer on Stack Overflow at: http://stackoverflow.com/a/28798955/467754
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type OddlySpelledWords = | |
static member String() = | |
["zZ"; "oO0Ò"; "eEê"] | |
|> List.map Gen.elements | |
|> Gen.sequence | |
|> Gen.map (List.map string >> List.reduce (+)) | |
|> Arb.fromGen | |
[<Property(Arbitrary = [| typeof<OddlySpelledWords> |])>] | |
let ``Generate oddly spelled words`` s = | |
printfn "%s" s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. This also works: