             XCTFail()
         }
         catch let e {
-            XCTAssertEqual((e as! RxError)._code, RxError.noElements._code)
+            XCTAssertErrorEqual(e, RxError.noElements)
         }
     }
     

            XCTFail()
        }
        catch let e {
            XCTAssertEqual((e as! RxError)._code, RxError.moreThanOneElement._code)
        }
    }
    

            XCTFail()
        }
        catch let e {
            XCTAssertErrorEqual(e, RxError.noElements)
        }
        XCTAssertEqual(predicateVals, [42, 43, 44, 45])
    }
