Import Failable instead of Validation module into tests
This commit is contained in:
parent
244d61a3b8
commit
ce7a9362ed
|
@ -1,5 +1,5 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
@testable import Validation
|
@testable import Failable
|
||||||
|
|
||||||
final class FailableTests: XCTestCase {
|
final class FailableTests: XCTestCase {
|
||||||
func testInit()throws {
|
func testInit()throws {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
@testable import Validation
|
@testable import Failable
|
||||||
|
|
||||||
final class ValidationErrorTests: XCTestCase {
|
final class ValidationErrorTests: XCTestCase {
|
||||||
func testInit()throws {
|
func testInit()throws {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
@testable import Validation
|
@testable import Failable
|
||||||
|
|
||||||
internal struct EmptyValidation<T>: Validation {
|
internal struct EmptyValidation<T>: Validation {
|
||||||
typealias Supported = T
|
typealias Supported = T
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
@testable import Validation
|
@testable import Failable
|
||||||
|
|
||||||
internal struct LengthRange10To1028<C>: LengthValidation where C: Collection {
|
internal struct LengthRange10To1028<C>: LengthValidation where C: Collection {
|
||||||
typealias Supported = C
|
typealias Supported = C
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
@testable import Validation
|
@testable import Failable
|
||||||
|
|
||||||
internal struct NumberThousand: InRangeValidation {
|
internal struct NumberThousand: InRangeValidation {
|
||||||
typealias Supported = Int
|
typealias Supported = Int
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
@testable import Validation
|
@testable import Failable
|
||||||
|
|
||||||
typealias OptionalStringLength = NotNilValidate<LengthRange10To1028<String>>
|
typealias OptionalStringLength = NotNilValidate<LengthRange10To1028<String>>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
@testable import Validation
|
@testable import Failable
|
||||||
|
|
||||||
internal struct USPhoneNumber: RegexValidation {
|
internal struct USPhoneNumber: RegexValidation {
|
||||||
static let pattern = "1?-?\\(?[0-9]{3}\\)?-?[0-9]{3}-?[0-9]{4}"
|
static let pattern = "1?-?\\(?[0-9]{3}\\)?-?[0-9]{3}-?[0-9]{4}"
|
||||||
|
|
Loading…
Reference in New Issue