We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78f35bc commit 6c3f127Copy full SHA for 6c3f127
1 file changed
src/test/cljs/cljs/core_test.cljs
@@ -7,6 +7,7 @@
7
; You must not remove this notice, or any other, from this software.
8
9
(ns cljs.core-test
10
+ (:refer-global :only [Object String])
11
(:refer-clojure :exclude [iter])
12
(:require [cljs.test :refer-macros [deftest testing is are]]
13
[clojure.test.check :as tc]
@@ -1993,3 +1994,16 @@
1993
1994
(is (NaN? (min 1 ##NaN)))
1995
(is (NaN? (max ##NaN 1)))
1996
(is (NaN? (max 1 ##NaN)))))
1997
+
1998
+(deftest test-static-props-methods
1999
+ (is (= [] PersistentVector/EMPTY))
2000
+ (let [f String/fromCharCode]
2001
+ (is (= "A" (f 65)))))
2002
2003
+(deftest test-new-method
2004
+ (let [f Object/new]
2005
+ (some? (f))))
2006
2007
+(deftest test-instance-method-new
2008
+ (is (= ["FOO" "BAR" "BAZ"]
2009
+ (map String/.toUpperCase ["foo" "bar" "baz"]))))
0 commit comments