We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f42966 commit c724475Copy full SHA for c724475
Example/RxValidatorExample/RxValidatorExampleTests/StringValidateTests.swift
@@ -113,4 +113,13 @@ class StringValidateTests: XCTestCase {
113
}
114
115
116
+ func testStringArray() {
117
+ let targetValue = ["1", "2", "3"]
118
+
119
+ let result: RxValidatorResult = targetValue
120
+ .compactMap { return Validate.to($0).validate(StringShouldNotBeEmpty()).check() }
121
+ .reduce(RxValidatorResult.valid) { $0 != .valid ? $0 : $1 }
122
123
+ expect(result).toEventually(equal(.valid))
124
+ }
125
0 commit comments