File tree 1 file changed +15
-10
lines changed
exercises/practice/gigasecond/test
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 1
1
(ns gigasecond-test
2
- (:require [clojure.test :refer [deftest is]]
2
+ (:require [clojure.test :refer [deftest testing is]]
3
3
gigasecond))
4
4
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 )))))
7
8
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 )))))
10
12
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 )))))
13
16
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)))))
You can’t perform that action at this time.
0 commit comments