Eric
06/08/2023, 1:01 PMpropertiesAreEqualToIgnoring
doesn't support nullable attributes as currently written
this should work, though
fun <T : Any> Assertion.Builder<T>.propertiesAreEqualToIgnoring(
other: T,
vararg ignoredProperties: KProperty1<T, Any?>,
): Assertion.Builder<T> = compareFieldByField(
other,
ignoredProperties.map(KProperty1<T, Any?>::name)
)
Just changed KProperty1<T, Any>
-> KProperty1<T, Any?>
Eric
06/08/2023, 1:21 PMKProperty1<T, *>
?robfletcher
06/08/2023, 5:57 PMEric
06/09/2023, 6:58 PM