Add tests

This commit is contained in:
Joshua Kaplan
2018-09-27 00:22:41 +09:00
parent 71b6def313
commit 6cf052d0d8
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -891,6 +891,12 @@ extension QuickDiscouragedPendingTestRuleTests {
]
}
extension RandomRuleTests {
static var allTests: [(String, (RandomRuleTests) -> () throws -> Void)] = [
("testWithDefaultConfiguration", testWithDefaultConfiguration)
]
}
extension RedundantDiscardableLetRuleTests {
static var allTests: [(String, (RedundantDiscardableLetRuleTests) -> () throws -> Void)] = [
("testWithDefaultConfiguration", testWithDefaultConfiguration)
@@ -1401,6 +1407,7 @@ XCTMain([
testCase(QuickDiscouragedCallRuleTests.allTests),
testCase(QuickDiscouragedFocusedTestRuleTests.allTests),
testCase(QuickDiscouragedPendingTestRuleTests.allTests),
testCase(RandomRuleTests.allTests),
testCase(RedundantDiscardableLetRuleTests.allTests),
testCase(RedundantNilCoalescingRuleTests.allTests),
testCase(RedundantOptionalInitializationRuleTests.allTests),
@@ -468,6 +468,12 @@ class QuickDiscouragedPendingTestRuleTests: XCTestCase {
}
}
class RandomRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(RandomRule.description)
}
}
class RedundantDiscardableLetRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(RedundantDiscardableLetRule.description)