Skip to content

Commit

Permalink
fixed tests in array to string task
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOcumare committed Feb 22, 2022
1 parent 1c3a716 commit 221bd68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LABSTests/LAB_1/ArrayToStringTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ final class ArrayToStringTests: XCTestCase {

func testRegularArray() {
let array = [1,2,3,5,7,8,9,10]
XCTAssertEqual(ArrayToStringConverter.convertToString(array: array), "1-3,5,7-9,10")
XCTAssertEqual(ArrayToStringConverter.convertToString(array: array), "1-3,5,7-10")
}

func testNonStringSrray() {
let array = [1,3,5,7,9,11]
XCTAssertEqual(ArrayToStringConverter.convertToString(array: array), "1,3,5,7,9,11")
}

func testConsecutiveArray() {
Expand Down

0 comments on commit 221bd68

Please sign in to comment.