<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions in Portal</title>
<link>https://ask.clojure.org/index.php/questions/tools/portal</link>
<description></description>
<item>
<title>Test suit doesn't find function implemented in my solution</title>
<link>https://ask.clojure.org/index.php/13348/test-suit-doesnt-find-function-implemented-in-my-solution</link>
<description>&lt;p&gt;I have submitted a solution to the &lt;code&gt;bird watcher&lt;/code&gt; problem, and the test suit complains that it doesn't find the function &lt;code&gt;day-without-birds&lt;/code&gt;. Visual Studio Code is able to import it and run it from another file.&lt;/p&gt;
&lt;p&gt;The full implementation of the solution is as follows:&lt;/p&gt;
&lt;p&gt;Solution&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(ns bird-watcher)

 (def last-week [0 2 5 3 7 8 4])

 (defn last_position [v]
   (- (clojure.core/count v) 1))

 (defn today [birds]
   (get birds (last_position birds)))

(defn inc-bird [birds]
  (assoc birds (last_position birds)  (+ (today birds) 1)))

(defn day-without-birds
  [birds]
  (loop [y birds]
    (let [[x &amp;amp; rest] y]
      (if (= x 0)
        true
        (if (empty? rest)
          false
          (recur rest))))))
 
 

(defn n-days-count [birds n]
  (reduce + (take n birds)))

(defn busy [day]
  (if (&amp;gt; day 5)
    1
    0))

(defn busy-days [birds]
  (reduce + (map busy birds)))

(defn odd-week-internal
  [birds x]
  (loop [y birds
         target x]
    (let [[x &amp;amp; rest] y
          target (- 1 target)]
      (if (= x target)
        (if (empty? rest)
          true
          (recur rest target))
        false))))

(defn odd-week [birds]
  (odd-week-internal birds 0))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;
</description>
<category>Portal</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13348/test-suit-doesnt-find-function-implemented-in-my-solution</guid>
<pubDate>Sun, 01 Oct 2023 14:05:15 +0000</pubDate>
</item>
</channel>
</rss>