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

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

[nongnu] elpa/swift-mode 9941c27 224/496: Bring failing tests for #81 co


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 9941c27 224/496: Bring failing tests for #81 contributed in #82 by @dougbeal
Date: Sun, 29 Aug 2021 11:33:40 -0400 (EDT)

branch: elpa/swift-mode
commit 9941c27b96319c9293a305e0a77eb47583de1431
Author: ap4y <lod@pisem.net>
Commit: ap4y <lod@pisem.net>

    Bring failing tests for #81 contributed in #82 by @dougbeal
---
 test/indentation-tests.el | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/test/indentation-tests.el b/test/indentation-tests.el
index f3cbff4..3826dc0 100644
--- a/test/indentation-tests.el
+++ b/test/indentation-tests.el
@@ -846,6 +846,36 @@ func a(a: NSString = 1,
        |b: NSString = 2) {}
 ")
 
+(check-indentation indents-func-declaration/11
+                   "
+class Foo: Bar {
+    func Foo() {
+|foo
+    }
+}
+" "
+class Foo: Bar {
+    func Foo() {
+        |foo
+    }
+}
+")
+
+(check-indentation indents-func-declaration/12
+                   "
+class Foo: Bar {
+    override func Foo() {
+|foo
+    }
+}
+" "
+class Foo: Bar {
+    override func Foo() {
+        |foo
+    }
+}
+")
+
 (check-indentation indents-protocol-declaration/1
                    "
 protocol Foo {



reply via email to

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