[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode 5adb37d 070/496: More indentation tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode 5adb37d 070/496: More indentation tests |
Date: |
Sun, 29 Aug 2021 11:33:10 -0400 (EDT) |
branch: elpa/swift-mode
commit 5adb37d760a41fbdf6ff20da85c445d7229159fb
Author: Chris Barrett <chris.d.barrett@me.com>
Commit: Chris Barrett <chris.d.barrett@me.com>
More indentation tests
---
test/indentation-tests.el | 85 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 85 insertions(+)
diff --git a/test/indentation-tests.el b/test/indentation-tests.el
index 19b2e59..4f07885 100644
--- a/test/indentation-tests.el
+++ b/test/indentation-tests.el
@@ -223,6 +223,91 @@ switch true {
")
+(check-indentation indents-case-statement-bodies/1
+"
+switch x {
+case y:
+|return z
+}
+" "
+switch x {
+case y:
+ |return z
+}
+")
+
+(check-indentation indents-case-statement-bodies/2
+"
+switch x {
+case y:
+ |return z
+}
+" "
+switch x {
+case y:
+ |return z
+}
+")
+
+(check-indentation indents-case-statement-bodies/3
+"
+switch x {
+case y:
+ |return z
+}
+" "
+switch x {
+case y:
+ |return z
+}
+")
+
+(check-indentation indents-case-statement-bodies/4
+"
+switch x {
+case y:
+ x
+ |return z
+}
+" "
+switch x {
+case y:
+ x
+ |return z
+}
+")
+
+(check-indentation indents-case-statement-bodies/5
+"
+switch x {
+case y:
+ x
+|return z
+}
+" "
+switch x {
+case y:
+ x
+ |return z
+}
+")
+
+(check-indentation indents-case-statement-bodies/6
+"
+switch x {
+case y:
+ x
+ |return z
+}
+" "
+switch x {
+case y:
+ x
+ |return z
+}
+")
+
+
(check-indentation
indents-default-statements-to-same-level-as-enclosing-switch/1
"
{
- [nongnu] elpa/swift-mode 7d93c75 464/496: Bump version to 8.1.0, (continued)
- [nongnu] elpa/swift-mode 7d93c75 464/496: Bump version to 8.1.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e65a80a 465/496: Support full-indent for switch cases, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9676f90 485/496: Update CI versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e9e493e 487/496: Set `comment-line-break-function`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fd3c824 484/496: Bump version to 8.2.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 23b9227 492/496: Support async/await, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 6546ad5 040/496: Fix auto-mode-alist regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 760710c 031/496: fixup! Update readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode bf224ad 049/496: Organize links, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e46584a 054/496: Add @bbatsov to contributors in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5adb37d 070/496: More indentation tests,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 34be010 074/496: Update features in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 6553249 062/496: Rename predicate (add question mark), ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ff32221 068/496: Add font lock tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5f97c99 060/496: Add tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c3a0a66 065/496: Fix custom variable types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a17f9e8 066/496: Rename predicate functions ('?' -> -p), ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8dc7eb9 078/496: Clean up after pull request, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 98b627a 075/496: Add @ap4y to contributors, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 812b4f6 084/496: Remove redundant hook definition, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8fc94c7 097/496: Merge pull request #25 from ap4y/smie_indentation, ELPA Syncer, 2021/08/29