swift: [SR-14655] [Source Compat] RxTest - several errors related to XCTest usage
Previous ID | SR-14655 |
Radar | rdar://78419005 |
Original Reporter | @benlangmuir |
Type | Bug |
Additional Detail from JIRA
Votes | 0 |
Component/s | |
Labels | Bug |
Assignee | None |
Priority | Medium |
md5: 5feab7218a5310806d4d21013d2df92d
Issue Description:
Jenkins URL: https://ci.swift.org/job/swift-main-source-compat-suite/5899
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:28:22: error: cannot convert value of type '[AnyEquatable<Event<Element>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:28:22: note: arguments to generic parameter 'Element' ('AnyEquatable<Event<Element>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:28:37: error: cannot convert value of type '[AnyEquatable<Event<Element>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:28:37: note: arguments to generic parameter 'Element' ('AnyEquatable<Event<Element>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:54:24: error: cannot convert value of type '[AnyEquatable<SingleEvent<Element>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:54:24: note: arguments to generic parameter 'Element' ('AnyEquatable<SingleEvent<Element>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:54:39: error: cannot convert value of type '[AnyEquatable<SingleEvent<Element>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:54:39: note: arguments to generic parameter 'Element' ('AnyEquatable<SingleEvent<Element>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:80:24: error: cannot convert value of type '[AnyEquatable<MaybeEvent<Element>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:80:24: note: arguments to generic parameter 'Element' ('AnyEquatable<MaybeEvent<Element>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:80:39: error: cannot convert value of type '[AnyEquatable<MaybeEvent<Element>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:80:39: note: arguments to generic parameter 'Element' ('AnyEquatable<MaybeEvent<Element>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:106:24: error: cannot convert value of type '[AnyEquatable<CompletableEvent>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:106:24: note: arguments to generic parameter 'Element' ('AnyEquatable<CompletableEvent>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:106:39: error: cannot convert value of type '[AnyEquatable<CompletableEvent>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:106:39: note: arguments to generic parameter 'Element' ('AnyEquatable<CompletableEvent>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:134:22: error: cannot convert value of type '[AnyEquatable<Recorded<Event<Element>>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:134:22: note: arguments to generic parameter 'Element' ('AnyEquatable<Recorded<Event<Element>>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:134:37: error: cannot convert value of type '[AnyEquatable<Recorded<Event<Element>>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:134:37: note: arguments to generic parameter 'Element' ('AnyEquatable<Recorded<Event<Element>>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:163:24: error: cannot convert value of type '[AnyEquatable<Recorded<Event<Element?>>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:163:24: note: arguments to generic parameter 'Element' ('AnyEquatable<Recorded<Event<Element?>>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:163:39: error: cannot convert value of type '[AnyEquatable<Recorded<Event<Element?>>>]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:163:39: note: arguments to generic parameter 'Element' ('AnyEquatable<Recorded<Event<Element?>>>' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(leftEquatable, rightEquatable, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:188:9: error: cannot find 'XCTFail' in scope
XCTFail("A non-next stop event has been emitted: \(stopEvent)", file: file, line: line)
^~~~~~~
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:204:20: error: cannot convert value of type '[Element]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(streamElements, elements, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:204:20: note: arguments to generic parameter 'Element' ('Element' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(streamElements, elements, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:204:36: error: cannot convert value of type '[Element]' to expected argument type '[CompletableEvent]'
XCTAssertEqual(streamElements, elements, file: file, line: line)
^
/Users/buildnode/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/RxSwift/RxTest/XCTest+Rx.swift:204:36: note: arguments to generic parameter 'Element' ('Element' and 'CompletableEvent') are expected to be equal
XCTAssertEqual(streamElements, elements, file: file, line: line)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (14 by maintainers)
@justice-adams-apple see https://github.com/apple/swift-source-compat-suite/pull/723