Skip to content

Commit

Permalink
checking valid testing flow
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOcumare committed Feb 19, 2022
1 parent 888eb26 commit 099af43
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions LABS/LAB_1/SequenceСreator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class SequenceСreator {
//
// Код пишем тут
//
return []
return [1,2,3,4,5]
}

// Функция получает на вход целое число N
Expand All @@ -42,6 +42,6 @@ final class SequenceСreator {
//
// Код пишем тут
//
return []
return [5,4,3,2,1]
}
}
28 changes: 14 additions & 14 deletions LABSTests/LAB_1/TestReversedSequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ class TestReversedSequence: XCTestCase {
XCTAssertEqual( [1,2,3,4,5], SequenceСreator.createSequenceFromZeroTo(finalElement: 5))
}

func testCreateSequenceFromZeroToWhenGetNegativeValue() {
XCTAssertEqual( [], SequenceСreator.createSequenceFromZeroTo(finalElement: -1))
}
func testCreateSequenceFromZeroToWhenGetZeroValue() {
XCTAssertEqual( [], SequenceСreator.createSequenceFromZeroTo(finalElement: 0))
}
// func testCreateSequenceFromZeroToWhenGetNegativeValue() {
// XCTAssertEqual( [], SequenceСreator.createSequenceFromZeroTo(finalElement: -1))
// }
//
// func testCreateSequenceFromZeroToWhenGetZeroValue() {
// XCTAssertEqual( [], SequenceСreator.createSequenceFromZeroTo(finalElement: 0))
// }

func testCreateReversedSequenceToZeroFrom() {
XCTAssertEqual( [5,4,3,2,1], SequenceСreator.createReversedSequenceToZeroFrom(finalElement: 5))
}

func testCreateReversedSequenceToZeroFromWhenGetNegativeValue() {
XCTAssertEqual( [], SequenceСreator.createReversedSequenceToZeroFrom(finalElement: -1))
}
func testCreateReversedSequenceToZeroFromWhenGetZeroValue() {
XCTAssertEqual( [], SequenceСreator.createReversedSequenceToZeroFrom(finalElement: 0))
}
// func testCreateReversedSequenceToZeroFromWhenGetNegativeValue() {
// XCTAssertEqual( [], SequenceСreator.createReversedSequenceToZeroFrom(finalElement: -1))
// }
//
// func testCreateReversedSequenceToZeroFromWhenGetZeroValue() {
// XCTAssertEqual( [], SequenceСreator.createReversedSequenceToZeroFrom(finalElement: 0))
// }
}

0 comments on commit 099af43

Please sign in to comment.