Skip to content
Merged
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
14 changes: 14 additions & 0 deletions src/test/cljs/cljs/core_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
; You must not remove this notice, or any other, from this software.

(ns cljs.core-test
(:refer-global :only [Object String])
(:refer-clojure :exclude [iter])
(:require [cljs.test :refer-macros [deftest testing is are]]
[clojure.test.check :as tc]
Expand Down Expand Up @@ -1993,3 +1994,16 @@
(is (NaN? (min 1 ##NaN)))
(is (NaN? (max ##NaN 1)))
(is (NaN? (max 1 ##NaN)))))

(deftest test-static-props-methods
(is (= [] PersistentVector/EMPTY))
(let [f String/fromCharCode]
(is (= "A" (f 65)))))

(deftest test-new-method
(let [f Object/new]
(some? (f))))

(deftest test-instance-method-new
(is (= ["FOO" "BAR" "BAZ"]
(map String/.toUpperCase ["foo" "bar" "baz"]))))
Loading