Skip to content

Instantly share code, notes, and snippets.

@mfikes
Created April 19, 2015 18:51
Show Gist options
  • Save mfikes/dc128856195f3d863893 to your computer and use it in GitHub Desktop.
Save mfikes/dc128856195f3d863893 to your computer and use it in GitHub Desktop.
Nashorn unit test failures
orion:clojurescript mfikes$ pwd
/Users/mfikes/Documents/Projects/clojurescript
orion:clojurescript mfikes$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
orion:clojurescript mfikes$ `which jjs`
orion:clojurescript mfikes$ export NASHORN_HOME=$JAVA_HOME/bin
orion:clojurescript mfikes$ script/test
Analyzing file:/Users/mfikes/Documents/Projects/clojurescript/src/cljs/cljs/core.cljs
Compiling test/hello.cljs
WARNING: hello is a single segment namespace at line 1 test/hello.cljs
Compiling test/cljs/cljs/ns_test/bar.cljs
Compiling test/cljs/cljs/binding_test_other_ns.cljs
Compiling test/cljs/cljs/binding_test.cljs
Analyzing file:/Users/mfikes/Documents/Projects/clojurescript/src/cljs/cljs/test.cljs
Analyzing file:/Users/mfikes/Documents/Projects/clojurescript/src/cljs/clojure/string.cljs
Compiling test/cljs/cljs/keyword_other.cljs
Compiling test/cljs/cljs/keyword_test.cljs
Compiling test/cljs/cljs/reducers_test.cljs
Analyzing file:/Users/mfikes/Documents/Projects/clojurescript/src/cljs/clojure/core/reducers.cljs
Compiling test/cljs/clojure/string_test.cljs
Compiling test/cljs/baz.cljs
WARNING: baz is a single segment namespace at line 1 test/cljs/baz.cljs
Compiling test/cljs/foo/ns_shadow_test.cljs
Compiling test/cljs/cljs/ns_test/foo.cljs
Compiling test/cljs/cljs/reader_test.cljs
Analyzing file:/Users/mfikes/Documents/Projects/clojurescript/src/cljs/cljs/reader.cljs
Compiling test/cljs/cljs/core_test.cljs
Analyzing file:/Users/mfikes/Documents/Projects/clojurescript/src/cljs/clojure/set.cljs
WARNING: test-pr-str at line 343 is being replaced at line 1530 test/cljs/cljs/core_test.cljs
WARNING: foo580 at line 2073 is being replaced at line 2074 test/cljs/cljs/core_test.cljs
Compiling test/cljs/clojure/data_test.cljs
Analyzing file:/Users/mfikes/Documents/Projects/clojurescript/src/cljs/clojure/data.cljs
Compiling test/cljs/cljs/letfn_test.cljs
Compiling test/cljs/cljs/macro_test.cljs
Compiling test/cljs/cljs/import_test.cljs
Compiling test/cljs/cljs/ns_test.cljs
Compiling test/cljs/cljs/top_level.cljs
Compiling test/cljs/test_runner.cljs
WARNING: test-runner is a single segment namespace at line 1 test/cljs/test_runner.cljs
Compile basic sources, elapsed time: 12633.113251 msecs
Compiling /Users/mfikes/Documents/Projects/clojurescript/src/cljs/cljs/test.cljs
Compiling /Users/mfikes/Documents/Projects/clojurescript/src/cljs/clojure/set.cljs
Compiling /Users/mfikes/Documents/Projects/clojurescript/src/cljs/cljs/reader.cljs
Compiling /Users/mfikes/Documents/Projects/clojurescript/src/cljs/clojure/string.cljs
Compiling /Users/mfikes/Documents/Projects/clojurescript/src/cljs/cljs/core.cljs
Compiling /Users/mfikes/Documents/Projects/clojurescript/src/cljs/clojure/data.cljs
Compiling /Users/mfikes/Documents/Projects/clojurescript/src/cljs/clojure/core/reducers.cljs
Add dependencies, elapsed time: 5213.015049 msecs
Applying optimizations :advanced
Optimize sources, elapsed time: 27904.30748 msecs
Testing with V8
Testing cljs.core-test
Testing cljs.reader-test
Testing clojure.string-test
Testing clojure.data-test
Testing cljs.letfn-test
Testing cljs.reducers-test
Testing cljs.binding-test
Testing cljs.macro-test
Testing cljs.top-level
Testing cljs.keyword-test
Testing cljs.ns-test
Testing cljs.ns-test.foo
Testing foo.ns-shadow-test
Testing cljs.import-test
Ran 158 tests containing 17011 assertions.
0 failures, 0 errors.
Testing with SpiderMonkey
Testing cljs.core-test
Testing cljs.reader-test
Testing clojure.string-test
Testing clojure.data-test
Testing cljs.letfn-test
Testing cljs.reducers-test
Testing cljs.binding-test
Testing cljs.macro-test
Testing cljs.top-level
Testing cljs.keyword-test
Testing cljs.ns-test
Testing cljs.ns-test.foo
Testing foo.ns-shadow-test
Testing cljs.import-test
Ran 158 tests containing 17011 assertions.
0 failures, 0 errors.
Testing with JavaScriptCore
Testing cljs.core-test
Testing cljs.reader-test
Testing clojure.string-test
Testing clojure.data-test
Testing cljs.letfn-test
Testing cljs.reducers-test
Testing cljs.binding-test
Testing cljs.macro-test
Testing cljs.top-level
Testing cljs.keyword-test
Testing cljs.ns-test
Testing cljs.ns-test.foo
Testing foo.ns-shadow-test
Testing cljs.import-test
Ran 158 tests containing 17011 assertions.
0 failures, 0 errors.
Testing with Nashorn
Testing cljs.core-test
FAIL in (test-transducers) (at <anonymous> (builds/out-adv/core-advanced-test.js:NaN:2306)
Testing transducers
expected: (= (sequence (take-nth 2) (range 10)) (quote (0 2 4 6 8)))
actual: (not (= () (0 2 4 6 8)))
FAIL in (test-transducers) (at <anonymous> (builds/out-adv/core-advanced-test.js:NaN:2363)
Testing transducers
expected: (= (keep-indexed identity [:foo nil :bar nil :baz]) (sequence (keep-indexed identity) [:foo nil :bar nil :baz]))
actual: (not (= (0 1 2 3 4) (NaN NaN NaN NaN NaN)))
FAIL in (test-transducers) (at <anonymous> (builds/out-adv/core-advanced-test.js:NaN:2363)
Testing transducers
expected: (= (sequence xform data) (quote (36 200 10)))
actual: (not (= () (36 200 10)))
FAIL in (test-atoms-and-volatile) (at <anonymous> (builds/out-adv/core-advanced-test.js:NaN:1661)
Testing volatile
expected: (= 3 (vswap! v inc))
actual: (not (= 3 NaN))
FAIL in (test-atoms-and-volatile) (at <anonymous> (builds/out-adv/core-advanced-test.js:NaN:1661)
Testing volatile
expected: (= 3 (clojure.core/deref v))
actual: (not (= 3 NaN))
FAIL in (test-map-new-transducers) (at <anonymous> (builds/out-adv/core-advanced-test.js:NaN:3592)
Test distinct, interpose, map-indexed transducers
expected: (= [[0 1] [1 2] [2 3]] (transduce (map-indexed (fn [i x] [i x])) conj [] [1 2 3]))
actual: (not (= [[0 1] [1 2] [2 3]] [[NaN 1] [NaN 2] [NaN 3]]))
Testing cljs.reader-test
Testing clojure.string-test
Testing clojure.data-test
Testing cljs.letfn-test
Testing cljs.reducers-test
Testing cljs.binding-test
Testing cljs.macro-test
Testing cljs.top-level
Testing cljs.keyword-test
Testing cljs.ns-test
Testing cljs.ns-test.foo
Testing foo.ns-shadow-test
Testing cljs.import-test
Ran 158 tests containing 17011 assertions.
6 failures, 0 errors.
Tested with 4 out of 4 possible js targets
orion:clojurescript mfikes$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment