Skip to content

Commit

Permalink
remove usages of #inst in source code since it could be bound to any …
Browse files Browse the repository at this point in the history
…reader function
  • Loading branch information
henryw374 committed Aug 24, 2023
1 parent 6a0992f commit 0da44c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/tick/alpha/interval_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@
(t/date-time "2018-01-10T00:00"))]}
(ti/group-by
(ti/divide (ti/bounds (t/year 2016) (t/year 2019)) t/year)
[(ti/new-interval (t/date-time #inst "2017-12-20")
(t/date-time #inst "2018-01-10"))])))))
[(ti/new-interval (t/date-time "2017-12-20T00:00")
(t/date-time "2018-01-10T00:00"))])))))

(testing "O"
(is
Expand Down
8 changes: 4 additions & 4 deletions test/tick/api_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
(testing "Converting using with-clock"
(t/with-clock (t/clock (t/zone "America/New_York"))
(testing "inst to zoned-date-time"
(is (= (t/zoned-date-time #inst"2019-08-07T16:00")
(is (= (t/zoned-date-time "2019-08-07T16:00Z")
(t/zoned-date-time "2019-08-07T12:00-04:00[America/New_York]"))))
(testing "date-time to zoned-date-time"
(is (= (t/zoned-date-time (t/date-time "2019-08-07T12:00"))
Expand Down Expand Up @@ -193,7 +193,7 @@
(is
(=
(t/new-duration 2 :minutes)
(t/between #inst "2020-01-01T12:00" #inst "2020-01-01T12:02")))
(t/between (t/date-time "2020-01-01T12:00") (t/date-time "2020-01-01T12:02"))))

(testing "LocalDate"
(is (= (t/new-period 1 :days)
Expand Down Expand Up @@ -332,8 +332,8 @@


(deftest comparison-test-date
(let [t1 #inst "2019-12-24"
t2 #inst "2019-12-31"]
(let [t1 (t/inst "2019-12-24T00:00:00.000Z")
t2 (t/inst "2019-12-31T00:00:00.000Z")]

(is (t/< t1 t2))
(is (not (t/< t1 t1)))
Expand Down

0 comments on commit 0da44c4

Please sign in to comment.