aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/indent/swift/declarations.swift3
-rw-r--r--tests/indent/swift_spec.lua5
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/indent/swift/declarations.swift b/tests/indent/swift/declarations.swift
index a6f576ef2..d4bc6e054 100644
--- a/tests/indent/swift/declarations.swift
+++ b/tests/indent/swift/declarations.swift
@@ -16,6 +16,9 @@ class EquilateralTriangle: NamedShape {
var perimeter: Double {
willSet {
}
+ didSet {
+
+ }
}
@funcattr
diff --git a/tests/indent/swift_spec.lua b/tests/indent/swift_spec.lua
index 6ba0d2cf0..5f07ee825 100644
--- a/tests/indent/swift_spec.lua
+++ b/tests/indent/swift_spec.lua
@@ -15,7 +15,8 @@ describe("indent Swift:", function()
run:new_line("declarations.swift", { on_line = 6, text = "var x = 1", indent = 2 })
run:new_line("declarations.swift", { on_line = 12, text = "var textInsideInit = true", indent = 4 })
run:new_line("declarations.swift", { on_line = 17, text = "var textInsideWillSet = 1", indent = 6 })
- run:new_line("declarations.swift", { on_line = 22, text = "var textInsideOverrideFunc", indent = 4 })
- run:new_line("declarations.swift", { on_line = 28, text = "var InsideProtocol: String { get }", indent = 2 })
+ run:new_line("declarations.swift", { on_line = 20, text = "var textInsideDidSet = 1", indent = 6 })
+ run:new_line("declarations.swift", { on_line = 25, text = "var textInsideOverrideFunc", indent = 4 })
+ run:new_line("declarations.swift", { on_line = 31, text = "var InsideProtocol: String { get }", indent = 2 })
end)
end)