-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf48e33
commit 349a4a2
Showing
3 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(ns pronouns.pages-test | ||
(:require [pronouns.pages :as pages] | ||
[midje.sweet :refer :all])) | ||
|
||
(fact "prose-comma-list turns a list of strings into a prose list with commas" | ||
(pages/prose-comma-list ["foo"]) => "foo" | ||
(pages/prose-comma-list ["foo" "bar"]) => "foo and bar" | ||
(pages/prose-comma-list ["foo" "bar" "baz"]) => "foo, bar, and baz" | ||
(pages/prose-comma-list ["foo" "bar" "baz" "bobble"]) => "foo, bar, baz, and bobble" | ||
(pages/prose-comma-list []) => "") |