mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
Format first-party source according to .clang-format
This commit is contained in:
committed by
manojsdoshi
parent
65dfc5d19e
commit
50760c6935
@@ -17,16 +17,15 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <test/jtx/flags.h>
|
||||
#include <ripple/protocol/jss.h>
|
||||
#include <test/jtx/flags.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace test {
|
||||
namespace jtx {
|
||||
|
||||
Json::Value
|
||||
fset (Account const& account,
|
||||
std::uint32_t on, std::uint32_t off)
|
||||
fset(Account const& account, std::uint32_t on, std::uint32_t off)
|
||||
{
|
||||
Json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
@@ -43,8 +42,7 @@ flags::operator()(Env& env) const
|
||||
{
|
||||
auto const sle = env.le(account_);
|
||||
if (sle->isFieldPresent(sfFlags))
|
||||
env.test.expect((sle->getFieldU32(sfFlags) &
|
||||
mask_) == mask_);
|
||||
env.test.expect((sle->getFieldU32(sfFlags) & mask_) == mask_);
|
||||
else
|
||||
env.test.expect(mask_ == 0);
|
||||
}
|
||||
@@ -54,12 +52,11 @@ nflags::operator()(Env& env) const
|
||||
{
|
||||
auto const sle = env.le(account_);
|
||||
if (sle->isFieldPresent(sfFlags))
|
||||
env.test.expect((sle->getFieldU32(sfFlags) &
|
||||
mask_) == 0);
|
||||
env.test.expect((sle->getFieldU32(sfFlags) & mask_) == 0);
|
||||
else
|
||||
env.test.pass();
|
||||
}
|
||||
|
||||
} // jtx
|
||||
} // test
|
||||
} // ripple
|
||||
} // namespace jtx
|
||||
} // namespace test
|
||||
} // namespace ripple
|
||||
|
||||
Reference in New Issue
Block a user