Skip to content

Commit 90acdc7

Browse files
Merge pull request #1513 from devincoughlin/exclusivity-test-nsdata-fix
[Tests] Fix exclusivity warning in TestNSData
2 parents f406f74 + c725650 commit 90acdc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TestFoundation/TestNSData.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4180,12 +4180,12 @@ extension TestNSData {
41804180
// Mutate the second data
41814181
bytes.pointee = 0
41824182
XCTAssertEqual(bytes.pointee, 0, "First byte should be 0")
4183-
XCTAssertEqual(allOnesCopyToMutate[0], 0, "First byte accessed via other method should still be 0")
41844183

4185-
// Verify that the first data is still 1
4186-
XCTAssertEqual(allOnesData[0], 1, "The first byte should still be 1")
41874184
}
4188-
4185+
XCTAssertEqual(allOnesCopyToMutate[0], 0, "First byte accessed via other method should still be 0")
4186+
4187+
// Verify that the first data is still 1
4188+
XCTAssertEqual(allOnesData[0], 1, "The first byte should still be 1")
41894189
}
41904190

41914191
func testBridgingCustom() {

0 commit comments

Comments
 (0)