Skip to content

Commit

Permalink
Fix garland word tests (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
solar05 authored Sep 11, 2023
1 parent 8936f15 commit 7baf190
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/battle_asserts/issues/garland_word.clj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
(def test-data
[{:expected 2
:arguments ["onion"]}
{:expected 0
:arguments ["aab"]}
{:expected 1
:arguments ["ceramic"]}
{:expected 0
Expand All @@ -55,6 +57,4 @@

(defn solution [word]
(nth (filter #(= (take % word) (take-last % word))
(range (dec (count word)) 0 -1))
0
0))
(range (dec (count word)) 0 -1)) 0 0))

0 comments on commit 7baf190

Please sign in to comment.