Skip to content

Vouch v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Oct 08:38
· 18 commits to main since this release
6ea242c
  • Func<ValueTask> and Func<ValueTask<T>> now have their own Should overloads, so Throw, NotThrow, ThrowAsync and NotThrowAsync see the exception (#22). .Which after NotThrow() on a Func<ValueTask<T>> is now T instead of the ValueTask, and the sync Throw and NotThrow run the delegate on a thread-pool thread.
  • Failure messages cut each string and each ToString result at 200 characters, and sequences that do not know their size are no longer walked to the end (#24). A cut never splits a surrogate pair.
  • Half.NaN.Should().BeLessThan(...) and the other three ordering assertions on values without a numeric Should overload now fail when either side is NaN (#25).
  • BeEquivalentTo stays fast on graphs that share references and on large unordered collections of types with their own equality (#23).