File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 378
378
name (if (keyword? value)
379
379
(subs (str value) 1 )
380
380
(str value))
381
- name (-> name (string/replace " -" " _DASH_" ) (munge ) (string/replace " ." " $" ))]
381
+ name (if (= " ." name)
382
+ " _DOT_"
383
+ (-> name (string/replace " -" " _DASH_" ) (munge ) (string/replace " ." " $" )))]
382
384
(symbol (str prefix name))))
383
385
384
386
(defn- register-constant!
Original file line number Diff line number Diff line change 306
306
(is (= :a (keyword " a" )))
307
307
(is (= :a (keyword 'a)))
308
308
(is (= :a/b (keyword 'a 'b)))
309
- (is (= :a (keyword :a )))))
309
+ (is (= :a (keyword :a ))))
310
+
311
+ (testing " Testing name munging CLJS-1432"
312
+ (is (not= :$ :. ))
313
+ (is (not= '$ '.))))
310
314
311
315
(deftest test-map-operations
312
316
(testing " Test basic map collection operations"
Original file line number Diff line number Diff line change 342
342
; ; munge turns - into _, must preserve the dash first
343
343
(is (not= (a/gen-constant-id :test-kw )
344
344
(a/gen-constant-id :test_kw ))))
345
+
346
+ (deftest test-symbols-munge-cljs-1432
347
+ (is (not= (a/gen-constant-id :$)
348
+ (a/gen-constant-id :. )))
349
+ (is (not= (a/gen-constant-id '$)
350
+ (a/gen-constant-id '.))))
345
351
; ; Constants
346
352
347
353
(deftest test-constants
You can’t perform that action at this time.
0 commit comments