Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8588d04

Browse files
committedNov 2, 2024·
implement tests
1 parent 3fb0ce5 commit 8588d04

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
(ns gigasecond-test
2-
(:require [clojure.test :refer [deftest is]]
2+
(:require [clojure.test :refer [deftest testing is]]
33
gigasecond))
44

5-
(deftest from-apr-25-2011
6-
(is (= [2043 1 1] (gigasecond/from 2011 4 25))))
5+
(deftest test-92fbe71c-ea52-4fac-bd77-be38023cacf7
6+
(testing "Date-only specification of time"
7+
(is (= [2043 1 1] (gigasecond/from 2011 4 25)))))
78

8-
(deftest from-jun-13-1977
9-
(is (= [2009 2 19] (gigasecond/from 1977 6 13))))
9+
(deftest test-6d86dd16-6f7a-47be-9e58-bb9fb2ae1433
10+
(testing "Second test for date-only specification of time"
11+
(is (= [2009 2 19] (gigasecond/from 1977 6 13)))))
1012

11-
(deftest from-jul-19-1959
12-
(is (= [1991 3 27] (gigasecond/from 1959 7 19))))
13+
(deftest test-77eb8502-2bca-4d92-89d9-7b39ace28dd5
14+
(testing "Third test for date-only specification of time"
15+
(is (= [1991 3 27] (gigasecond/from 1959 7 19)))))
1316

14-
;; customize this to test your birthday and find your gigasecond date:
15-
;; (deftest your-birthday
16-
;; (is (= [year2 month2 day2] (gigasecond/from year1 month1 day1))))
17+
(deftest test-fcec307c-7529-49ab-b0fe-20309197618a
18+
(testing "Does not mutate the input"
19+
(let [date [1959 7 19]
20+
new-date (apply gigasecond/from date)]
21+
(is (= [1959 7 19] date)))))

0 commit comments

Comments
 (0)
Please sign in to comment.