Skip to content

Commit 4f113f6

Browse files
authored
Merge pull request #19734 from lorentey/fix-optimized-crash-test
2 parents f4db1dd + a301449 commit 4f113f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

validation-test/stdlib/Dictionary.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4801,10 +4801,11 @@ DictionaryTestSuite.test("Values.MutationDoesNotInvalidateIndices") {
48014801

48024802
// You should also be able to advance Cocoa indices.
48034803
let j = d.index(after: i)
4804+
expectLT(i, j)
48044805

48054806
// Unfortunately, Cocoa and Native indices aren't comparable, so the
48064807
// Collection conformance is not quite perfect.
4807-
expectCrash(withMessage: "Comparing indexes from different dictionaries") {
4808+
expectCrash() {
48084809
print(i == i2)
48094810
}
48104811
}

0 commit comments

Comments
 (0)