Rename the function from get-possible-keys to get-all-combinations-for-blocks.
This commit is contained in:
@@ -27,10 +27,10 @@
|
||||
[\a \b] ["ab" "ba"]
|
||||
[\a \b \c] ["abc" "acb" "bac" "bca" "cab" "cba"])))
|
||||
|
||||
(deftest get-possible-keys-test
|
||||
(testing "The keys must be the all combinations"
|
||||
(deftest get-all-combinations-for-blocks-test
|
||||
(testing "The keys must be the all combinations of blocks"
|
||||
(are [possible-keys-vector expected-keys]
|
||||
(= expected-keys (get-possible-keys possible-keys-vector))
|
||||
(= expected-keys (get-all-combinations-for-blocks possible-keys-vector))
|
||||
[[\a \b] [\f] [\a \c] [\g]] '("afag" "afcg" "bfag" "bfcg")
|
||||
[[\a \b] [\a \c]] '("aa" "ac" "ba" "bc")
|
||||
[[\a \b \c] [\a \c] [\b \c]] '("aab" "aac" "acb" "acc" "bab" "bac" "bcb" "bcc" "cab" "cac" "ccb" "ccc"))))
|
||||
|
||||
Reference in New Issue
Block a user