Skip to content

Commit a301449

Browse files
committedOct 5, 2018
[test] Fix spurious failure in optimized tests
We don’t emit the trap message in optimized builds, so don’t check for it.
1 parent fa0ba4f commit a301449

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎validation-test/stdlib/Dictionary.swift

+2-1
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)