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

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

[nongnu] elpa/swift-mode 5f97c99 060/496: Add tests


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 5f97c99 060/496: Add tests
Date: Sun, 29 Aug 2021 11:33:08 -0400 (EDT)

branch: elpa/swift-mode
commit 5f97c9905235d20b1ab2130c3031998330beeff6
Author: Chris Barrett <chris.d.barrett@me.com>
Commit: Chris Barrett <chris.d.barrett@me.com>

    Add tests
---
 test/indentation-tests.el | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/test/indentation-tests.el b/test/indentation-tests.el
index 106dd13..9d9fffd 100644
--- a/test/indentation-tests.el
+++ b/test/indentation-tests.el
@@ -229,6 +229,28 @@ switch true {
 }
 ")
 
+(check-indentation indents-case-statements-in-enum/1
+  "
+enum T {
+|case
+}
+" "
+enum T {
+    |case
+}
+")
+
+(check-indentation indents-case-statements-in-enum/2
+  "
+enum T {
+         |case
+}
+" "
+enum T {
+    |case
+}
+")
+
 (provide 'indentation-tests)
 
 ;;; indentation-tests.el ends here



reply via email to

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