Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename test functions, make test descriptions identical to the ones f…
Browse files Browse the repository at this point in the history
…rom .toml
tasxatzial committed Jan 11, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8588d04 commit 5d5916d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions exercises/practice/gigasecond/test/gigasecond_test.clj
Original file line number Diff line number Diff line change
@@ -2,20 +2,20 @@
(:require [clojure.test :refer [deftest testing is]]
gigasecond))

(deftest test-92fbe71c-ea52-4fac-bd77-be38023cacf7
(testing "Date-only specification of time"
(deftest from_test_1
(testing "date-only specification of time"
(is (= [2043 1 1] (gigasecond/from 2011 4 25)))))

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

(deftest test-77eb8502-2bca-4d92-89d9-7b39ace28dd5
(testing "Third test for date-only specification of time"
(deftest from_test_3
(testing "third test for date-only specification of time"
(is (= [1991 3 27] (gigasecond/from 1959 7 19)))))

(deftest test-fcec307c-7529-49ab-b0fe-20309197618a
(testing "Does not mutate the input"
(deftest from_test_4
(testing "does not mutate the input"
(let [date [1959 7 19]
new-date (apply gigasecond/from date)]
(is (= [1959 7 19] date)))))

0 comments on commit 5d5916d

Please sign in to comment.