diff --git a/Tests/SwiftAlgorithmsTests/ReplaceSubrangeTests.swift b/Tests/SwiftAlgorithmsTests/ReplaceSubrangeTests.swift index f57aae61..ca6c9934 100644 --- a/Tests/SwiftAlgorithmsTests/ReplaceSubrangeTests.swift +++ b/Tests/SwiftAlgorithmsTests/ReplaceSubrangeTests.swift @@ -176,5 +176,23 @@ final class ReplaceSubrangeTests: XCTestCase { XCTAssertEqualCollections(result, "hello, wo") IndexValidator().validate(result, expectedCount: 9) } + + // Location: entire collection + // Replacement: non-empty + do { + let base = "hello, world!" + let result = base.lazy.replacingSubrange(base.startIndex..