Skip to content

Commit

Permalink
✨ add ApproximateDateTimeEqualityComparer, to be used in deep equalit…
Browse files Browse the repository at this point in the history
…y testing

GetHashCode won't return equal values for approximately-equal inputs, unfortunately
- still need to have a think on this, but I don't think it's doable: imagine:

we have 3 values: A, B, C
we allow a 1s drift
B - A = 750ms
C - B = 750ms

A ~ B (within 1s)
C ~ B (within 1s)
A !~ C (1.5s apart)
  • Loading branch information
fluffynuts committed Jun 19, 2024
1 parent 7ff05c6 commit 9a9fdbf
Show file tree
Hide file tree
Showing 4 changed files with 1,466 additions and 5,535 deletions.
Loading

0 comments on commit 9a9fdbf

Please sign in to comment.