I've currently got a function in my main file which squares every number in the list, now that works perfectly with no errors but my unit tests keeps on throwing errors and I cant seem to figure out why.
(ns squareone.core-test
(:require [clojure.test :refer :all]
[squareone.core :refer :all]))
(deftest Squaring
(testing "Squaring test"
(is (= [1 16] (square [1 4])))))
That is everything in my test file
And this is what is in my main file minus the actual squaring function
(ns squareone.core)
(:require '[clojure.string :as string])
(require '['clojure.string :as 'str])
And I get this error
Syntax error (ClassCastException) compiling at
(C:\Users\public\squareone\src\squareone\core.clj:3:1).
class clojure.lang.PersistentList cannot be cast to class clojure.lang.Symbol
(clojure.lang.PersistentList and clojure.lang.Symbol are in unnamed module of loader 'app')
Very unsure on how to proceed, any help is appreciated :)
nsand forrequire. Parens and quotes.