Major version test (#167)

This commit is contained in:
Max Goedjen 2020-11-11 17:13:21 -08:00 committed by GitHub
parent 4d4b20c38d
commit 3c9659bd06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,12 @@ class SemVerTests: XCTestCase {
XCTAssert(current < new)
}
func testMajorGreaterMinorLesser() {
let current = SemVer("1.0.2")
let new = SemVer("2.0.0")
XCTAssert(current < new)
}
func testBeta() {
let current = SemVer("1.0.2")
let new = SemVer("1.1.0_beta1")