File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 77; You must not remove this notice, or any other, from this software.
88
99(ns cljs.core-test
10+ (:refer-global :only [Object String])
1011 (:refer-clojure :exclude [iter])
1112 (:require [cljs.test :refer-macros [deftest testing is are]]
1213 [clojure.test.check :as tc]
19931994 (is (NaN? (min 1 ##NaN )))
19941995 (is (NaN? (max ##NaN 1 )))
19951996 (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" ]))))
You can’t perform that action at this time.
0 commit comments