Skip to content

Commit b8698bd

Browse files
committed
Fix test crash
1 parent f56fd39 commit b8698bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/FoundationEssentialsTests/AttributedString/AttributedStringTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,8 +2458,9 @@ E {
24582458
struct EmptyScope : AttributeScope {
24592459

24602460
}
2461-
var emptyIterator = EmptyScope.attributeKeys.makeIterator()
2462-
#expect(emptyIterator.next() == nil)
2461+
for key in EmptyScope.attributeKeys {
2462+
Issue.record("Empty scope should not have produced key \(key)")
2463+
}
24632464
}
24642465
#endif // FOUNDATION_FRAMEWORK
24652466

0 commit comments

Comments
 (0)