Skip to main content

Clojure Test

Basic Setup

Solution Code

(ns solution)

(defn add [a b]
  (+ a b))
(ns solution)

(defn add [a b]
  (+ a b))

Tests

(ns solution-test
  (:require [clojure.test :refer :all]
            [solution :refer [add]]))

(deftest Add
  (is (= (add 1 2) 3)))
(ns solution-test
  (:require [clojure.test :refer :all]
            [solution :refer [add]]))

(deftest Add
  (is (= (add 1 2) 3)))