Skip to content

Commit

Permalink
Add q9
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkun committed Jul 20, 2024
1 parent 76ed69c commit d467425
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ex/q009.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;; https://4clojure.oxal.org/#/problem/009

(ns ex.q009)

(defn ans
"Problem 9, conj on sets"
[]
(conj #{1 4 3} 2))
9 changes: 9 additions & 0 deletions test/ex/q009_test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;; https://4clojure.oxal.org/#/problem/009

(ns ex.q009-test
(:require [clojure.test :as t]
[ex.q009 :as sut]))

(t/deftest test-q9
(t/testing "Problem 9, conj on sets"
(t/is (= #{1 2 3 4} (sut/ans)))))

0 comments on commit d467425

Please sign in to comment.