branch: elpa/swift-mode commit 9941c27b96319c9293a305e0a77eb47583de1431 Author: ap4y <l...@pisem.net> Commit: ap4y <l...@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 {