FSharp examples

View source project on Github

Simple demo

ToLower on string

  • C → c

  • D → d

Code used to generate this doc
module MyDemo.Tests

open NUnit.Framework

let format_to_lower(x:string) =
     "* " + x + " -> " + x.ToLower() + "\n"

[<Test>]
let Simple_demo () =
    "ToLower on string\n\n"
        + format_to_lower("C")
        + format_to_lower("D")
    |> Approvals.Doc().verify