This file contains hidden or 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
module NinetyNineBottles.SongTests | |
open Xunit | |
[<Fact>] | |
let ``Verse 99`` () = | |
let expected = "99 bottles of beer on the wall, 99 bottles of beer. | |
Take one down and pass it around, 98 bottles of beer on the wall." | |
let verse = Song.One 99 |> Song.verses | |
Assert.Equal(expected, verse) |
This file contains hidden or 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
using System; | |
using System.Globalization; | |
using System.Linq; | |
using System.Text; | |
EqualsIgnoreCaseAndDiacritics("héLloṩ", "hellos"); // true | |
static string RemoveDiacritics(string str) => | |
str is null ? null : | |
string.Concat(str |
This file contains hidden or 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
import * as assert from "assert"; | |
/** Decider Pattern **/ | |
type Transaction = { | |
amount: number | |
date: Date | |
} | |
type Deposited = Transaction & { |
OlderNewer