Files
2021-07-20 15:28:42 +02:00

31 lines
808 B
Swift

//
// GnosisSafeTests.swift
// MultisigTests
//
// Created by Dmitry Bespalov on 20.05.20.
// Copyright © 2020 Gnosis Ltd. All rights reserved.
//
import XCTest
@testable import Multisig
class GnosisSafeTests: XCTestCase {
let safe = GnosisSafe()
func testSupportedVersions() {
safe.minimumSupportedVersionValue = "1.0.0"
safe.maximumSupportedVersionValue = "1.3.0"
let supported: [String] = ["1.0.0", "1.1.1" , "1.1.0", "1.2.3", "1.3.0"]
let notSupported: [String] = ["0.1.0", "2.0.1", "1.3.1", "1.4.0"]
for v in supported {
XCTAssertTrue(safe.isSupported(v), "Expected to support \(v)")
}
for v in notSupported {
XCTAssertFalse(safe.isSupported(v), "Expected NOT to support \(v)")
}
}
}