Skip to content

Commit

Permalink
closing paren was in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrd committed Aug 10, 2019
1 parent 83bb85e commit 65c352f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fn_fx/render_core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@
(if (keyword? value)
(do (register-keyword-conv tp)
(convert-value value tp))
(assert (.isAssignableFrom tp (type value)) (str "Can't convert " (pr-str value) " of type " (type value) " to " tp))))
value)
(assert (.isAssignableFrom tp (type value)) (str "Can't convert " (pr-str value) " of type " (type value) " to " tp)))
value))

(defmethod convert-value
[java.lang.Long Double/TYPE]
Expand Down
7 changes: 7 additions & 0 deletions test/fn_fx/fx_dom_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
(is (= 22 (get-prop @long-count :cycle-count)))
(is (= -1 (get-prop @integer-count :cycle-count)))))

(deftest test-keyword-type-conversions
(let [interpolator (-> :javafx.animation.TranslateTransition
(component {:interpolator :linear}) dom/app :root)]
(Thread/sleep 100)
(is (= javafx.animation.Interpolator/LINEAR
(get-prop @interpolator :interpolator)))))

(defn gen-list [cnt]
(let [items (vec (for [x (range cnt)]
(ui/button
Expand Down

0 comments on commit 65c352f

Please sign in to comment.