|
3379 | 3379 | (expect "'(a b c)" (zprint-str "'(a b c)" {:parse-string? true}))
|
3380 | 3380 | (expect "`(a b c)" (zprint-str "`(a b c)" {:parse-string? true}))
|
3381 | 3381 | (expect "~(a b c)" (zprint-str "~(a b c)" {:parse-string? true}))
|
3382 |
| - (expect "~@(a b c)" (zprint-str "~@(a b c)" {:parse-string? true})) |
3383 | 3382 | (expect "@(a b c)" (zprint-str "@(a b c)" {:parse-string? true}))
|
3384 | 3383 | (expect "#'thisisatest" (zprint-str "#'thisisatest" {:parse-string? true}))
|
3385 | 3384 | (expect "#_(a b c)" (zprint-str "#_(a b c)" {:parse-string? true}))
|
3386 | 3385 | (expect "#_#_(a b c) d" (zprint-str "#_#_(a b c) d" {:parse-string? true}))
|
3387 | 3386 |
|
| 3387 | + ;; unquote deref vs unquote-splicing |
| 3388 | + (expect "(clojure.core/unquote (clojure.core/deref (a b c)))" |
| 3389 | + (zprint-str '~ @(a b c) {})) |
| 3390 | + (expect "(clojure.core/unquote-splicing (a b c))" |
| 3391 | + (zprint-str '~@(a b c) {})) |
| 3392 | + (expect "~(deref a)" (zprint-str "~(deref a)" {:parse-string? true})) |
| 3393 | + (expect "~(clojure.core/deref a)" (zprint-str "~(clojure.core/deref a)" {:parse-string? true})) |
| 3394 | + (expect "~;;comment\n @(a b c)" (zprint-str "~;;comment\n@(a b c)" {:parse-string? true})) |
| 3395 | + (expect "~@(a b c)" (zprint-str "~@(a b c)" {:parse-string? true})) |
| 3396 | + (expect "~ @(a b c)" (zprint-str "~ @(a b c)" {:parse-string? true})) |
| 3397 | + (expect "~ @(a b c)" (zprint-str "~ @(a b c)" {:parse-string? true})) |
| 3398 | + (expect "~ @(a b c)" (zprint-str "~ @(a b c)" {:parse-string? true})) |
| 3399 | + (expect "~#_@(a b c) a" (zprint-str "~#_@(a b c)a" {:parse-string? true})) |
| 3400 | + (expect "~#_a @(a b c)" (zprint-str "~#_a@(a b c)" {:parse-string? true})) |
| 3401 | + (expect "[#_a @(a b c)]" (zprint-str "[#_a@(a b c)]" {:parse-string? true})) |
| 3402 | + |
3388 | 3403 | ;;
|
3389 | 3404 | ;; These try for the indents
|
3390 | 3405 | ;;
|
|
0 commit comments