|
6 | 6 |
|
7 | 7 | (def clock (j/fixed-clock "2015-11-26T10:20:30.000000040Z" "UTC")) |
8 | 8 |
|
9 | | -(deftest constructors |
| 9 | +(deftest constructors-test |
10 | 10 | (testing "clocks" |
11 | 11 | (testing ", with-clock" |
12 | 12 | (are [f] (= (j/with-clock clock (f)) |
|
321 | 321 | (is (j/period? (j/period))) |
322 | 322 | (is (not (j/period? nil))))) |
323 | 323 |
|
324 | | -(deftest operations |
| 324 | +(deftest operations-test |
325 | 325 | (testing "duration" |
326 | 326 | (is (j/duration? (j/duration 1 :days))) |
327 | 327 | (is (not (j/duration? nil))) |
|
410 | 410 | (j/minus (j/day-of-week 6) 5) |
411 | 411 | (j/minus (j/day-of-week 6) (j/days 5))))))) |
412 | 412 |
|
413 | | -(deftest ordering |
| 413 | +(deftest ordering-test |
414 | 414 |
|
415 | 415 | (testing "times" |
416 | 416 | (let [ldt (j/local-date-time clock) |
|
573 | 573 | (is (j/not-before? apr-1 jan-1)) |
574 | 574 | (is (not (j/not-before? jan-1 apr-1)))))) |
575 | 575 |
|
576 | | -(deftest mock-clock |
| 576 | +(deftest mock-clock-test |
577 | 577 | (testing "constructors" |
578 | 578 | (is (= (j/mock-clock) |
579 | 579 | (j/mock-clock 0) |
|
622 | 622 | (j/set-clock! clock 0) |
623 | 623 | (is (= 0 (j/value clock)))))))) |
624 | 624 |
|
625 | | -(deftest properties |
| 625 | +(deftest properties-test |
626 | 626 | (testing "units" |
627 | 627 | (is (= (j/unit :seconds) |
628 | 628 | (j/unit (j/duration) :seconds) |
|
795 | 795 | (testing "throws" |
796 | 796 | (is (thrown? Exception (j/as (j/local-time 0) :year)))))) |
797 | 797 |
|
798 | | -(deftest legacy-conversion |
| 798 | +(deftest legacy-conversion-test |
799 | 799 | (testing "deprecated" |
800 | 800 | (testing "converts through instant" |
801 | 801 | (is (= (j/instant 1000) (j/instant (java.util.Date. 1000)))) |
|
925 | 925 |
|
926 | 926 | (import '[org.joda.time Duration Period DateTimeZone |
927 | 927 | LocalDate LocalTime LocalDateTime DateTime Instant]) |
928 | | - (deftest joda |
| 928 | + (deftest joda-test |
929 | 929 | (testing "duration from duration and period" |
930 | 930 | (is (= (j/duration 1 :millis) |
931 | 931 | (j/duration (Duration/millis 1)) |
|
0 commit comments