Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions test/clojure/core_test/max.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@
(is (= ##Inf (max 1 2 3 4 5 ##Inf)))

(is (NaN? (max ##NaN 1)))
(is (NaN? (max 1 ##NaN)))
(is (NaN? (max 1 2 3 4 ##NaN)))
(is (NaN? (max ##-Inf ##NaN ##Inf)))
#?@(:jank [(is 1 (= (max 1 ##NaN)))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please leave a comment next to any jank-specific differences to explain why it's different. Follow jank's practices about what makes a good comment.

(is 4 (= (max 1 2 3 4 ##NaN)))
(is ##Inf (= (max ##-Inf ##NaN ##Inf)))]
:default [(is (NaN? (max 1 ##NaN)))
(is (NaN? (max 1 2 3 4 ##NaN)))
(is (NaN? (max ##-Inf ##NaN ##Inf)))])
(is (NaN? (max ##NaN)))

#?@(:lpy
Expand Down
6 changes: 4 additions & 2 deletions test/clojure/core_test/min.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
(is (= ##-Inf (min 1 2 3 4 5 ##-Inf)))
(is (= 1 (min 1 2 3 4 5 ##Inf)))

#?@(:jank [(is (= 1 (min 1 ##NaN)))
(is (= ##Inf (min ##-Inf ##NaN ##Inf)))]
:default [(is (NaN? (min 1 ##NaN)))
(is (NaN? (min ##-Inf ##NaN ##Inf)))])
(is (NaN? (min ##NaN 1)))
(is (NaN? (min 1 ##NaN)))
(is (NaN? (min 1 2 3 4 ##NaN)))
(is (NaN? (min ##-Inf ##NaN ##Inf)))
(is (NaN? (min ##NaN)))

#?@(:lpy
Expand Down
Loading