Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change test string
  • Loading branch information
abelbraaksma committed Jun 20, 2020
commit c7d4cda9e8a22504e35e21228d1ed1601d5d131d
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ type StringModule() =
let e2 = String.filter (fun c -> true) null
Assert.AreEqual("", e2)

let e3 = String.filter (fun c -> c <> '\'') "Golliwog's cakewalk"
Assert.AreEqual("Golliwogs cakewalk", e3)
let e3 = String.filter Char.IsUpper "How Vexingly Quick Daft Zebras Jump!"
Assert.AreEqual("HVQDZJ", e3)

let e4 = String.filter (fun c -> c <> 'o') ""
Assert.AreEqual("", e4)
Expand Down