Compare two PRBMath.UD60x18 values directly (without converting or .value)? #16
Replies: 1 comment
-
This is a very good question! PRBTest doesn't support the PRBMath variable types, and it will likely never support them. The reason for that is that I intend to test PRBMath v3 with PRBTest itself, and so if PRBTest also imported PRBMath to provide assertions for its types, there would be a circular import. What I plan on doing, once I get to implementing PRBMath v3, is to offer import { PRBMathAssertions } from "@prb/math/test/Assertions.sol"; Update: I shipped PRBMath v3 in the meantime, which comes with testing assertions for |
Beta Was this translation helpful? Give feedback.
-
Do the
PRBTest
assertions support checking equality between twoPRBMath.UD60x18
values directly (without converting or doing.value
)?Beta Was this translation helpful? Give feedback.
All reactions