Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f297a5d5fa
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.311 kb
(ns iterate-clojure-workshop12.task9-if
(:require [clojure.test :refer :all]))
;; Return the absolute value of a number using if.
; TODO
;; Test for the function
;; TIP: Un-comment the (comment ...) to disable the test temporarily:
;(comment
(deftest abs-test
(is (= 4 (abs -4)))
(is (= 4 (abs 4))))
;)
Jump to Line
Something went wrong with that request. Please try again.