mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
refactor: Replace !=/== tesSuccess with using isTesSuccess (#6409)
This change replaces all instances of `<variable> != tesSUCCESS` with `!isTesSuccess(<variable>)` and `<variable> == tesSUCCESS` with `isTesSuccess(<variable>)`.
This commit is contained in:
@@ -140,7 +140,7 @@ class Invariants_test : public beast::unit_test::suite
|
||||
BEAST_EXPECTS(terExpect == terActual, std::to_string(TERtoInt(terActual)));
|
||||
auto const messages = sink.messages().str();
|
||||
|
||||
if (terActual != tesSUCCESS)
|
||||
if (!isTesSuccess(terActual))
|
||||
{
|
||||
BEAST_EXPECTS(
|
||||
messages.starts_with("Invariant failed:") ||
|
||||
|
||||
Reference in New Issue
Block a user