We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b48b055 + 8ea999e commit af591bcCopy full SHA for af591bc
validation-test/stdlib/String.swift
@@ -1,6 +1,5 @@
1
// RUN: %target-run-simple-swift
2
// REQUIRES: executable_test
3
-// REQUIRES: rdar17028332
4
5
// XFAIL: interpret
6
@@ -472,7 +471,7 @@ StringTests.test("appendToSubstringBug") {
472
471
473
// We should correctly determine if the storage is too small and
474
// reallocate.
475
- if originalCapacity < suffixSize + prefixSize {
+ if size + prefixSize >= originalCapacity {
476
expectNotEqual(originalIdentity, s0.bufferID)
477
} else {
478
expectEqual(originalIdentity, s0.bufferID)
0 commit comments