Skip to content

Commit

Permalink
Add testRemoveLast()
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Dec 7, 2024
1 parent e290d4d commit 77328c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/SkipLibTests/CollectionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 77328c0

Please sign in to comment.