-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a list of tests to be run on Linux (see #13)
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import XCTest | ||
|
||
extension CodingTests { | ||
static let __allTests = [ | ||
("testDebugDescriptions", testDebugDescriptions), | ||
("testDecoding", testDecoding), | ||
("testDecodingBool", testDecodingBool), | ||
("testEmptyCollectionDecoding", testEmptyCollectionDecoding), | ||
("testEncoding", testEncoding), | ||
("testFragmentEncoding", testFragmentEncoding), | ||
] | ||
} | ||
|
||
extension EqualityTests { | ||
static let __allTests = [ | ||
("testEquality", testEquality), | ||
] | ||
} | ||
|
||
extension InitializationTests { | ||
static let __allTests = [ | ||
("testInitialization", testInitialization), | ||
("testInitializationFromCodable", testInitializationFromCodable), | ||
("testUnknownTypeInitialization", testUnknownTypeInitialization), | ||
] | ||
} | ||
|
||
extension QueryingTests { | ||
static let __allTests = [ | ||
("testArraySubscripting", testArraySubscripting), | ||
("testArrayValue", testArrayValue), | ||
("testBoolValue", testBoolValue), | ||
("testFloatValue", testFloatValue), | ||
("testNullValue", testNullValue), | ||
("testObjectValue", testObjectValue), | ||
("testStringSubscripting", testStringSubscripting), | ||
("testStringSubscriptingSugar", testStringSubscriptingSugar), | ||
("testStringValue", testStringValue), | ||
] | ||
} | ||
|
||
#if !os(macOS) | ||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(CodingTests.__allTests), | ||
testCase(EqualityTests.__allTests), | ||
testCase(InitializationTests.__allTests), | ||
testCase(QueryingTests.__allTests), | ||
] | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import XCTest | ||
|
||
import GenericJSONTests | ||
|
||
var tests = [XCTestCaseEntry]() | ||
tests += GenericJSONTests.__allTests() | ||
|
||
XCTMain(tests) |