Skip to content

Commit af591bc

Browse files
authored
Merge pull request #3790 from swiftix/SE-130-implementation
Fix a failing test
2 parents b48b055 + 8ea999e commit af591bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

validation-test/stdlib/String.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: rdar17028332
43

54
// XFAIL: interpret
65

@@ -472,7 +471,7 @@ StringTests.test("appendToSubstringBug") {
472471

473472
// We should correctly determine if the storage is too small and
474473
// reallocate.
475-
if originalCapacity < suffixSize + prefixSize {
474+
if size + prefixSize >= originalCapacity {
476475
expectNotEqual(originalIdentity, s0.bufferID)
477476
} else {
478477
expectEqual(originalIdentity, s0.bufferID)

0 commit comments

Comments
 (0)