File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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" )))
You can’t perform that action at this time.
0 commit comments