hyperfiddle-2020 icon indicating copy to clipboard operation
hyperfiddle-2020 copied to clipboard

URL Decode Test is failing on apparently equal symbol decoding

Open Invocatis opened this issue 5 years ago • 0 comments

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.

Invocatis avatar Jun 16 '20 14:06 Invocatis