Skip to content

Commit a9d6da6

Browse files
committed
update linux main test files
1 parent 69f67bc commit a9d6da6

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

Tests/FormDataTests/SerializerTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import HTTP
77

88
class SerializerTests: XCTestCase {
99
static var allTests = [
10-
("testInit", testInit)
10+
("testInit", testInit),
11+
("testBasic", testBasic),
1112
]
13+
1214

1315
func testInit() throws {
1416
let serializer = try FormData.Serializer(boundary: "foo")

Tests/LinuxMain.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
#if os(Linux)
2-
31
import XCTest
2+
3+
@testable import FormDataTests
44
@testable import MultipartTests
55

66
XCTMain([
7-
7+
testCase(ParserTests.allTests),
8+
testCase(SerializerTests.allTests),
9+
testCase(ParserTests.allTests),
10+
testCase(SerializerTests.allTests),
811
])
912

10-
#endif

Tests/MultipartTests/ParserTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ class ParserTests: XCTestCase {
77
("testInit", testInit),
88
("testPreamble", testPreamble),
99
("testPreambleWithFauxBoundaries", testPreambleWithFauxBoundaries),
10+
("testParts", testParts),
11+
("testHeaders", testHeaders),
12+
("testEpilogue", testEpilogue),
13+
("testFormData", testFormData),
1014
]
1115

1216
func testInit() throws {

Tests/MultipartTests/SerializerTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import Core
55

66
class SerializerTests: XCTestCase {
77
static var allTests = [
8-
("testInit", testInit)
8+
("testInit", testInit),
9+
("testBasic", testBasic),
910
]
1011

1112
func testInit() throws {

0 commit comments

Comments
 (0)