Created
December 2, 2024 21:54
-
-
Save chase-lambert/6dd1d7b3a7602c3d55f65f267b33b1a5 to your computer and use it in GitHub Desktop.
rendezvous with cassidoo challenge: 24.12.02
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
(ns roll-call | |
(:require [clojure.test :refer [deftest is]])) | |
(defn roll-call [names] | |
(->> names | |
(map reverse) | |
(map (partial apply str)) | |
sort)) | |
(deftest roll-call-test | |
(is (= (roll-call ["yzneT" "ydissaC" "enimA"]) | |
["Amine" "Cassidy" "Tenzy"])) | |
(is (= (roll-call ["rennoD" "nexiV" "recnarP" "temoC" "neztilB" "recnaD" "dipuC" "rehsaD" "hploduR"]) | |
["Blitzen" "Comet" "Cupid" "Dancer" "Dasher" "Donner" "Prancer" "Rudolph" "Vixen"])) | |
(is (= (roll-call ["A" "B" "C"]) | |
["A" "B" "C"]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment