File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
examples/lein/src/tests/devtools_sample/tests
test/src/tests/devtools/tests Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ (ns devtools-sample.tests.issue44
2
+ (:require-macros [devtools-sample.logging :refer [log info]])
3
+ (:require [devtools-sample.boot :refer [boot!]]))
4
+
5
+ (boot! " /src/tests/devtools_sample/tests/issue44.cljs" )
6
+
7
+ (enable-console-print! )
8
+
9
+ ; --- MEAT STARTS HERE -->
10
+ (js/console.log {:a false })
11
+ (js/console.log {:a true })
12
+ (js/console.log [false ])
13
+ (js/console.log false )
14
+
15
+ ; <-- MEAT STOPS HERE ---
Original file line number Diff line number Diff line change 1032
1032
[:header-tag
1033
1033
CIRCULAR]]))))))))
1034
1034
1035
+ (deftest test-issue-44
1036
+ (testing " make sure false does not render as null"
1037
+ (let [false -val false
1038
+ map-with-false-val {:a false }]
1039
+ (is-header false -val
1040
+ [:cljs-land-tag
1041
+ [:header-tag
1042
+ [:bool-tag " false" ]]])
1043
+ (has-body? false -val false )
1044
+ (is-header map-with-false-val
1045
+ [:cljs-land-tag
1046
+ [:header-tag
1047
+ " {"
1048
+ [:keyword-tag " :a" ]
1049
+ :spacer
1050
+ [:bool-tag " false" ]
1051
+ " }" ]])
1052
+ (has-body? map-with-false-val false ))))
1053
+
1035
1054
(deftest test-issue-54
1036
1055
(testing " properly handle ##NaN and ##Inf"
1037
1056
(let [nan ##NaN
You can’t perform that action at this time.
0 commit comments