@@ -29,7 +29,7 @@ public extension SpryEquatable {
29
29
public extension SpryEquatable where Self: Equatable {
30
30
func _isEqual( to actual: SpryEquatable ? ) -> Bool {
31
31
guard let castedActual = actual as? Self else {
32
- Constant . FatalError. wrongTypesBeingCompared ( actual , self )
32
+ Constant . FatalError. wrongTypesBeingCompared ( self : self , actual : actual )
33
33
}
34
34
35
35
return self == castedActual
@@ -41,7 +41,7 @@ public extension SpryEquatable where Self: Equatable {
41
41
public extension SpryEquatable where Self: AnyObject {
42
42
func _isEqual( to actual: SpryEquatable ? ) -> Bool {
43
43
guard let castedActual = actual as? Self else {
44
- Constant . FatalError. wrongTypesBeingCompared ( actual , self )
44
+ Constant . FatalError. wrongTypesBeingCompared ( self : self , actual : actual )
45
45
}
46
46
47
47
return self === castedActual
@@ -53,7 +53,7 @@ public extension SpryEquatable where Self: AnyObject {
53
53
public extension SpryEquatable where Self: AnyObject & Equatable {
54
54
func _isEqual( to actual: SpryEquatable ? ) -> Bool {
55
55
guard let castedActual = actual as? Self else {
56
- Constant . FatalError. wrongTypesBeingCompared ( actual , self )
56
+ Constant . FatalError. wrongTypesBeingCompared ( self : self , actual : actual )
57
57
}
58
58
59
59
return self === castedActual
@@ -65,7 +65,7 @@ public extension SpryEquatable where Self: AnyObject & Equatable {
65
65
public extension Array {
66
66
func _isEqual( to actual: SpryEquatable ? ) -> Bool {
67
67
guard let castedActual = actual as? Array < Element > else {
68
- Constant . FatalError. wrongTypesBeingCompared ( actual , self )
68
+ Constant . FatalError. wrongTypesBeingCompared ( self : self , actual : actual )
69
69
}
70
70
71
71
if self . count != castedActual. count {
@@ -91,7 +91,7 @@ public extension Array {
91
91
public extension Dictionary {
92
92
func _isEqual( to actual: SpryEquatable ? ) -> Bool {
93
93
guard let castedActual = actual as? Dictionary < Key , Value > else {
94
- Constant . FatalError. wrongTypesBeingCompared ( actual , self )
94
+ Constant . FatalError. wrongTypesBeingCompared ( self : self , actual : actual )
95
95
}
96
96
97
97
if self . count != castedActual. count {
@@ -135,7 +135,7 @@ public extension SpryEquatable where Self: OptionalType {
135
135
}
136
136
137
137
guard type ( of: self ) == type ( of: actual) else {
138
- Constant . FatalError. wrongTypesBeingCompared ( actual , self )
138
+ Constant . FatalError. wrongTypesBeingCompared ( self : self , actual : actual )
139
139
}
140
140
141
141
let selfsWrappedValue = selfMirror. children. first? . value
0 commit comments