Inline dedicated rule test (#6459)

This commit is contained in:
Danny Mösch
2026-01-23 20:25:19 +01:00
committed by GitHub
parent 1d7f3b627b
commit 335edded41
3 changed files with 22 additions and 32 deletions
@@ -140,12 +140,15 @@ extension Example: Hashable {
// Ignoring file/line metadata because two Examples could represent
// the same idea, but captured at two different points in the code
lhs.code == rhs.code
&& lhs.configuration?.mapValues(String.init(describing:))
== rhs.configuration?.mapValues(String.init(describing:))
}
public func hash(into hasher: inout Hasher) {
// Ignoring file/line metadata because two Examples could represent
// the same idea, but captured at two different points in the code
hasher.combine(code)
hasher.combine(configuration?.mapValues(String.init(describing:)))
}
}