Skip to content

Commit

Permalink
Add q3
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkun committed Jul 15, 2024
1 parent a670f72 commit 101a705
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ex/q003.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;; https://4clojure.oxal.org/#/problem/3
;;
;; solving "ans" in: (= (ans) (.toUpperCase "hello world"))

(ns ex.q003)

(defn ans []
"HELLO WORLD")
9 changes: 9 additions & 0 deletions test/ex/q003_test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;; https://4clojure.oxal.org/#/problem/3

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

(t/deftest test-q3
(t/testing "Problem 3, Strings"
(t/is (= (sut/ans) (.toUpperCase "hello world")))))

0 comments on commit 101a705

Please sign in to comment.