branch: elpa/swift-mode
commit 5f97c9905235d20b1ab2130c3031998330beeff6
Author: Chris Barrett <[email protected]>
Commit: Chris Barrett <[email protected]>
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