File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Tests/FoundationEssentialsTests Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1656,8 +1656,7 @@ private final class DataTests {
1656
1656
span = source. span
1657
1657
isEmpty = span. isEmpty
1658
1658
#expect( !isEmpty)
1659
- let count = span. count
1660
- #expect( count == source. count)
1659
+ #expect( span. count == source. count)
1661
1660
let firstElement = span [ 0 ]
1662
1661
#expect( firstElement == 1 )
1663
1662
}
@@ -1702,8 +1701,7 @@ private final class DataTests {
1702
1701
let i = try #require( indices. randomElement ( ) )
1703
1702
isEmpty = span. isEmpty
1704
1703
#expect( !isEmpty)
1705
- count = span. count
1706
- #expect( count == count)
1704
+ #expect( span. count == count)
1707
1705
let v = UInt8 . random ( in: 10 ..< 100 )
1708
1706
span [ i] = v
1709
1707
var sub = span. extracting ( i ..< i+ 1 )
You can’t perform that action at this time.
0 commit comments