Skip to content

Commit c662572

Browse files
committed
Remove trailing whitespace from the MigratingFromXCTest document
1 parent ed6358d commit c662572

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Sources/Testing/Testing.docc/MigratingFromXCTest.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ convert XCTest-based content to use the testing library instead.
2323

2424
### Import the testing library
2525

26-
XCTest and the testing library are available from different modules. Instead of
26+
XCTest and the testing library are available from different modules. Instead of
2727
importing the XCTest module, import the Testing module:
2828

2929
@Row {
@@ -41,8 +41,8 @@ importing the XCTest module, import the Testing module:
4141
}
4242
}
4343

44-
A single source file can contain tests written with XCTest as well as other
45-
tests written with the testing library. Import both XCTest and Testing if a
44+
A single source file can contain tests written with XCTest as well as other
45+
tests written with the testing library. Import both XCTest and Testing if a
4646
source file contains mixed test content.
4747

4848
### Interoperability between Swift Testing and XCTest
@@ -309,7 +309,7 @@ As with XCTest, the testing library allows test functions to be marked `async`,
309309
For more information about test functions and how to declare and customize them,
310310
see <doc:DefiningTests>.
311311

312-
### Check for expected values and outcomes
312+
### Check for expected values and outcomes
313313

314314
XCTest uses a family of approximately 40 functions to assert test requirements.
315315
These functions are collectively referred to as
@@ -438,7 +438,7 @@ their equivalents in the testing library:
438438

439439
The testing library doesn’t provide an equivalent of
440440
[`XCTAssertEqual(_:_:accuracy:_:file:line:)`](https://developer.apple.com/documentation/xctest/3551607-xctassertequal).
441-
To compare two numeric values within a specified accuracy,
441+
To compare two numeric values within a specified accuracy,
442442
use `isApproximatelyEqual()` from [swift-numerics](https://github.com/apple/swift-numerics).
443443

444444
### Continue or halt after test failures
@@ -619,7 +619,7 @@ and [`Sequence<Int>`](https://developer.apple.com/documentation/swift/sequence))
619619
can be used with ``confirmation(_:expectedCount:isolation:sourceLocation:_:)-l3il``.
620620
You must specify a lower bound for the number of confirmations because, without
621621
one, the testing library cannot tell if an issue should be recorded when there
622-
have been zero confirmations.
622+
have been zero confirmations.
623623

624624
### Control whether a test runs
625625

@@ -737,7 +737,7 @@ issue:
737737
- Note: The XCTest function [`XCTExpectFailure(_:options:)`](https://developer.apple.com/documentation/xctest/3727245-xctexpectfailure),
738738
which doesn't take a closure and which affects the remainder of the test,
739739
doesn't have a direct equivalent in the testing library. To mark an entire
740-
test as having a known issue, wrap its body in a call to `withKnownIssue()`.
740+
test as having a known issue, wrap its body in a call to `withKnownIssue()`.
741741

742742
If a test may fail intermittently, the call to
743743
`XCTExpectFailure(_:options:failingBlock:)` can be marked _non-strict_. When
@@ -764,7 +764,7 @@ instead:
764764
// After
765765
@Test func grillWorks() async {
766766
withKnownIssue(
767-
"Grill may need fuel",
767+
"Grill may need fuel",
768768
isIntermittent: true
769769
) {
770770
try FoodTruck.shared.grill.start()
@@ -822,7 +822,7 @@ of issues:
822822
} when: {
823823
FoodTruck.shared.hasGrill
824824
} matching: { issue in
825-
issue.error != nil
825+
issue.error != nil
826826
}
827827
...
828828
}
@@ -849,7 +849,7 @@ suite serially:
849849
try FoodTruck.shared.refrigerator.openDoor()
850850
XCTAssertEqual(FoodTruck.shared.refrigerator.lightState, .on)
851851
}
852-
852+
853853
func testLightGoesOut() throws {
854854
try FoodTruck.shared.refrigerator.openDoor()
855855
try FoodTruck.shared.refrigerator.closeDoor()
@@ -867,7 +867,7 @@ suite serially:
867867
try FoodTruck.shared.refrigerator.openDoor()
868868
#expect(FoodTruck.shared.refrigerator.lightState == .on)
869869
}
870-
870+
871871
@Test func lightGoesOut() throws {
872872
try FoodTruck.shared.refrigerator.openDoor()
873873
try FoodTruck.shared.refrigerator.closeDoor()

0 commit comments

Comments
 (0)