33
44import XCTest
55
6- final class ThrowingTestsTests : XCTestCase {
6+ final class NoForceTryInTestsTests : XCTestCase {
77 func testTestCaseIsUpdated_for_Testing( ) throws {
88 let input = """
99 import Testing
@@ -19,7 +19,7 @@ final class ThrowingTestsTests: XCTestCase {
1919 try somethingThatThrows()
2020 }
2121 """
22- testFormatting ( for: input, output, rule: . throwingTests )
22+ testFormatting ( for: input, output, rule: . noForceTryInTests )
2323 }
2424
2525 func test_nonTestCaseFunction_IsNotUpdated_for_Testing( ) throws {
@@ -36,7 +36,7 @@ final class ThrowingTestsTests: XCTestCase {
3636 try! somethingThatThrows()
3737 }
3838 """
39- testFormatting ( for: input, rule: . throwingTests )
39+ testFormatting ( for: input, rule: . noForceTryInTests )
4040 }
4141
4242 func testTestCaseIsUpdated_for_XCTest( ) throws {
@@ -58,7 +58,7 @@ final class ThrowingTestsTests: XCTestCase {
5858 }
5959 }
6060 """
61- testFormatting ( for: input, output, rule: . throwingTests )
61+ testFormatting ( for: input, output, rule: . noForceTryInTests )
6262 }
6363
6464 func test_nonTestCaseFunction_IsNotUpdated_for_XCTest( ) throws {
@@ -71,7 +71,7 @@ final class ThrowingTestsTests: XCTestCase {
7171 }
7272 }
7373 """
74- testFormatting ( for: input, rule: . throwingTests )
74+ testFormatting ( for: input, rule: . noForceTryInTests )
7575 }
7676
7777 func testTestCaseIsUpdated_for_async_test( ) throws {
@@ -89,7 +89,7 @@ final class ThrowingTestsTests: XCTestCase {
8989 try somethingThatThrows()
9090 }
9191 """
92- testFormatting ( for: input, output, rule: . throwingTests )
92+ testFormatting ( for: input, output, rule: . noForceTryInTests )
9393 }
9494
9595 func testTestCaseIsUpdated_for_already_throws( ) throws {
@@ -107,7 +107,7 @@ final class ThrowingTestsTests: XCTestCase {
107107 try somethingThatThrows()
108108 }
109109 """
110- testFormatting ( for: input, output, rule: . throwingTests )
110+ testFormatting ( for: input, output, rule: . noForceTryInTests )
111111 }
112112
113113 func testTestCaseIsUpdated_for_multiple_try_exclamationMarks( ) throws {
@@ -127,7 +127,7 @@ final class ThrowingTestsTests: XCTestCase {
127127 try somethingThatThrows()
128128 }
129129 """
130- testFormatting ( for: input, output, rule: . throwingTests )
130+ testFormatting ( for: input, output, rule: . noForceTryInTests )
131131 }
132132
133133 func testTestCaseIsNotUpdated_for_try_exclamationMark_in_closoure( ) throws {
@@ -140,7 +140,7 @@ final class ThrowingTestsTests: XCTestCase {
140140 }
141141 }
142142 """
143- testFormatting ( for: input, rule: . throwingTests )
143+ testFormatting ( for: input, rule: . noForceTryInTests )
144144 }
145145
146146 func testTestCaseIsUpdated_for_try_exclamationMark_in_if_statement( ) throws {
@@ -162,7 +162,7 @@ final class ThrowingTestsTests: XCTestCase {
162162 }
163163 }
164164 """
165- testFormatting ( for: input, output, rule: . throwingTests )
165+ testFormatting ( for: input, output, rule: . noForceTryInTests )
166166 }
167167
168168 func testCaseIsNotUpdated_for_try_exclamationMark_in_closure_inside_if_statement( ) throws {
@@ -177,7 +177,7 @@ final class ThrowingTestsTests: XCTestCase {
177177 }
178178 }
179179 """
180- testFormatting ( for: input, rule: . throwingTests )
180+ testFormatting ( for: input, rule: . noForceTryInTests )
181181 }
182182
183183 func testCaseIsNotUpdated_for_try_exclamationMark_in_closure_inside_nested_function( ) throws {
@@ -192,6 +192,6 @@ final class ThrowingTestsTests: XCTestCase {
192192 }
193193 }
194194 """
195- testFormatting ( for: input, rule: . throwingTests )
195+ testFormatting ( for: input, rule: . noForceTryInTests )
196196 }
197197}
0 commit comments