Rename the function from get-possible-keys to get-all-combinations-for-blocks.

This commit is contained in:
2023-11-14 21:54:38 +02:00
parent d1b2ddc351
commit d6ba958b5b
2 changed files with 5 additions and 5 deletions
@@ -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"))))