diff --git a/Tests/SkipLibTests/CollectionsTests.swift b/Tests/SkipLibTests/CollectionsTests.swift index d11bad4..2ea95b0 100644 --- a/Tests/SkipLibTests/CollectionsTests.swift +++ b/Tests/SkipLibTests/CollectionsTests.swift @@ -384,6 +384,13 @@ final class CollectionsTests: XCTestCase { i += 1 } } + + func testRemoveLast() { + var arr1 = [1, 3, 5] + XCTAssertEqual(5, arr1.removeLast()) + XCTAssertEqual(3, arr1.removeLast()) + XCTAssertEqual([1], arr1) + } } private enum ElementEnum: Int, CaseIterable {