Skip to content

Commit b73b9d8

Browse files
authored
Fix MarkupTest's missing array code convention (#2)
1 parent 91b296e commit b73b9d8

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Tests/MarkdownTests/Base/MarkupTests.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ final class MarkupTests: XCTestCase {
7272
}
7373

7474
let text = document.child(through: [
75-
0, // Paragraph
76-
0, // Strong
77-
0, // Emphasis
78-
0]) as! Text
75+
0, // Paragraph
76+
0, // Strong
77+
0, // Emphasis
78+
0,
79+
]) as! Text
7980
var newText = text
8081
newText.string = "New"
8182

@@ -272,7 +273,7 @@ final class MarkupTests: XCTestCase {
272273
(0, Paragraph.self),
273274
(1, Link.self),
274275
(0, Emphasis.self),
275-
(0, Text.self)
276+
(0, Text.self),
276277
])!.debugDescription(),
277278
document.child(through:
278279
0, // Paragraph

Tests/MarkdownTests/Inline Nodes/ImageTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ImageTests: XCTestCase {
3636
let document = Document(parsing: source)
3737
let image = document.child(through:[
3838
(0, Paragraph.self),
39-
(0, Image.self)
39+
(0, Image.self),
4040
]) as! Image
4141
XCTAssertEqual(title, image.title)
4242
}

0 commit comments

Comments
 (0)