Skip to content

Commit

Permalink
Merge branch 'master' of github.com:clojure/clojurescript
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jan 4, 2021
2 parents afe2cf7 + fa4b8d8 commit 73cba74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cljs/cljs/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10288,7 +10288,7 @@ reduces them without incurring seq initialization"
ns)))]
(write-all writer
"#inst \""
(str (.getUTCFullYear obj)) "-"
(normalize (.getUTCFullYear obj) 4) "-"
(normalize (inc (.getUTCMonth obj)) 2) "-"
(normalize (.getUTCDate obj) 2) "T"
(normalize (.getUTCHours obj) 2) ":"
Expand Down
4 changes: 4 additions & 0 deletions src/test/cljs/cljs/core_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,10 @@
(is (= :/ (keyword "/")))
(is (= (hash :/) (hash (keyword "/")))))

(deftest test-cljs-3263
(is (= "#inst \"0985-04-12T23:20:50.520-00:00\"" (pr-str #inst "0985-04-12T23:20:50.520-00:00")))
(is (= "#inst \"1970-12-18T23:20:50.520-00:00\"" (pr-str #inst "1970-12-18T23:20:50.520-00:00"))))

(deftest test-cljs-3270
(is (== 10 (count (range 0 (+ 1 (/ 9)) (/ 9))))))

Expand Down

0 comments on commit 73cba74

Please sign in to comment.