hyperfiddle-2020
hyperfiddle-2020 copied to clipboard
URL Decode Test is failing on apparently equal symbol decoding
Given the following test
(is (= (decode "/:bar?:hyperfiddle.route!where=W1s_ZSA6Zm9vID9hXV0,&utm=asdfdsaf")
{::route/fiddle :bar
::route/where '[[?e :foo ?a]]
'utm #?(:clj 'j�_vƟ :cljs "jÇ_vÆ")}))
We receive this output when running on cljs
(not (= {:hyperfiddle.route/where [[?e :foo ?a]],
utm jÇ_vÆ,
:hyperfiddle.route/fiddle :bar,
:hyperfiddle.route/fragment "blah"}
{:hyperfiddle.route/fiddle :bar,
:hyperfiddle.route/where [[?e :foo ?a]],
utm jÇ_vÆ,
:hyperfiddle.route/fragment "blah"}))
The issue may be caused when creating the test by copying and pasting the expected results.