Skip to content

Commit 27d3af9

Browse files
committed
rename deftests
1 parent 15938db commit 27d3af9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/java_time_test.clj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
(def clock (j/fixed-clock "2015-11-26T10:20:30.000000040Z" "UTC"))
88

9-
(deftest constructors
9+
(deftest constructors-test
1010
(testing "clocks"
1111
(testing ", with-clock"
1212
(are [f] (= (j/with-clock clock (f))
@@ -321,7 +321,7 @@
321321
(is (j/period? (j/period)))
322322
(is (not (j/period? nil)))))
323323

324-
(deftest operations
324+
(deftest operations-test
325325
(testing "duration"
326326
(is (j/duration? (j/duration 1 :days)))
327327
(is (not (j/duration? nil)))
@@ -410,7 +410,7 @@
410410
(j/minus (j/day-of-week 6) 5)
411411
(j/minus (j/day-of-week 6) (j/days 5)))))))
412412

413-
(deftest ordering
413+
(deftest ordering-test
414414

415415
(testing "times"
416416
(let [ldt (j/local-date-time clock)
@@ -573,7 +573,7 @@
573573
(is (j/not-before? apr-1 jan-1))
574574
(is (not (j/not-before? jan-1 apr-1))))))
575575

576-
(deftest mock-clock
576+
(deftest mock-clock-test
577577
(testing "constructors"
578578
(is (= (j/mock-clock)
579579
(j/mock-clock 0)
@@ -622,7 +622,7 @@
622622
(j/set-clock! clock 0)
623623
(is (= 0 (j/value clock))))))))
624624

625-
(deftest properties
625+
(deftest properties-test
626626
(testing "units"
627627
(is (= (j/unit :seconds)
628628
(j/unit (j/duration) :seconds)
@@ -795,7 +795,7 @@
795795
(testing "throws"
796796
(is (thrown? Exception (j/as (j/local-time 0) :year))))))
797797

798-
(deftest legacy-conversion
798+
(deftest legacy-conversion-test
799799
(testing "deprecated"
800800
(testing "converts through instant"
801801
(is (= (j/instant 1000) (j/instant (java.util.Date. 1000))))
@@ -925,7 +925,7 @@
925925

926926
(import '[org.joda.time Duration Period DateTimeZone
927927
LocalDate LocalTime LocalDateTime DateTime Instant])
928-
(deftest joda
928+
(deftest joda-test
929929
(testing "duration from duration and period"
930930
(is (= (j/duration 1 :millis)
931931
(j/duration (Duration/millis 1))

0 commit comments

Comments
 (0)