emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/clojure-ts-mode 59f4cdc6cf 077/210: Add indentation tests


From: ELPA Syncer
Subject: [nongnu] elpa/clojure-ts-mode 59f4cdc6cf 077/210: Add indentation tests for `specify` and `specify!`
Date: Thu, 31 Oct 2024 18:59:42 -0400 (EDT)

branch: elpa/clojure-ts-mode
commit 59f4cdc6cf59dac84ffe8c84011daa0ec2f0102d
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>

    Add indentation tests for `specify` and `specify!`
---
 clojure-mode-indentation-test.el | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/clojure-mode-indentation-test.el b/clojure-mode-indentation-test.el
index f8d1c8994d..566df29501 100644
--- a/clojure-mode-indentation-test.el
+++ b/clojure-mode-indentation-test.el
@@ -272,6 +272,24 @@ values of customisable variables."
     [this]
     \"Why is this over here?\"))")
 
+(def-full-indent-test specify
+  "(specify obj
+  ISwap
+  (-swap!
+    ([this f] (reset! this (f @this)))
+    ([this f a] (reset! this (f @this a)))
+    ([this f a b] (reset! this (f @this a b)))
+    ([this f a b xs] (reset! this (apply f @this a b xs)))))")
+
+(def-full-indent-test specify!
+  "(specify! obj
+  ISwap
+  (-swap!
+    ([this f] (reset! this (f @this)))
+    ([this f a] (reset! this (f @this a)))
+    ([this f a b] (reset! this (f @this a b)))
+    ([this f a b xs] (reset! this (apply f @this a b xs)))))")
+
 (def-full-indent-test non-symbol-at-start
   "{\"1\" 2
  *3 4}")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]