Skip to content

Commit 2dede55

Browse files
committed
Cleanup span expectations
1 parent 085bd5c commit 2dede55

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/FoundationEssentialsTests/DataTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,8 +1656,7 @@ private final class DataTests {
16561656
span = source.span
16571657
isEmpty = span.isEmpty
16581658
#expect(!isEmpty)
1659-
let count = span.count
1660-
#expect(count == source.count)
1659+
#expect(span.count == source.count)
16611660
let firstElement = span[0]
16621661
#expect(firstElement == 1)
16631662
}
@@ -1702,8 +1701,7 @@ private final class DataTests {
17021701
let i = try #require(indices.randomElement())
17031702
isEmpty = span.isEmpty
17041703
#expect(!isEmpty)
1705-
count = span.count
1706-
#expect(count == count)
1704+
#expect(span.count == count)
17071705
let v = UInt8.random(in: 10..<100)
17081706
span[i] = v
17091707
var sub = span.extracting(i ..< i+1)

0 commit comments

Comments
 (0)