Skip to content

Commit 3d0a8be

Browse files
committed
revert Java version checking
1 parent 7629207 commit 3d0a8be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/java_time_test.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,14 +1019,14 @@
10191019
(let [java-version (->> (System/getProperty "java.version")
10201020
(re-find #"^\d+")
10211021
Integer/parseInt)]
1022-
(if (= java-version 13)
1023-
(testing "Java 13 treats AM as invalid"
1022+
(if (> java-version 11)
1023+
(testing "Java 13 and above treats AM as invalid"
10241024
(let [fmt (java-time/formatter "hh:mma" {:case :sensitive})]
10251025
(is (= (j/local-time 0 34 0 0)
10261026
(j/local-time fmt "12:34am")))
10271027
(is (thrown? Exception (j/local-time fmt "12:34AM")))))
10281028

1029-
(testing "Java 8, 11, and 15 treats am as invalid"
1029+
(testing "Java 8 and 11 treats am as invalid"
10301030
(let [fmt (java-time/formatter "hh:mma" {:case :sensitive})]
10311031
(is (= (j/local-time 0 34 0 0)
10321032
(j/local-time fmt "12:34AM")))

0 commit comments

Comments
 (0)