mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 01:06:48 +00:00
chore: Set ColumnLimit to 120 in clang-format (#6288)
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
This commit is contained in:
@@ -60,9 +60,7 @@ struct DID_test : public beast::unit_test::suite
|
||||
|
||||
// Pay alice almost enough to make the reserve for a DID.
|
||||
env(pay(env.master, alice, drops(incReserve + 2 * baseFee - 1)));
|
||||
BEAST_EXPECT(
|
||||
env.balance(alice) ==
|
||||
acctReserve + incReserve + drops(baseFee - 1));
|
||||
BEAST_EXPECT(env.balance(alice) == acctReserve + incReserve + drops(baseFee - 1));
|
||||
env.close();
|
||||
|
||||
// alice still does not have enough XRP for the reserve of a DID.
|
||||
@@ -113,11 +111,7 @@ struct DID_test : public beast::unit_test::suite
|
||||
BEAST_EXPECT(ownerCount(env, alice) == 0);
|
||||
|
||||
// all empty fields
|
||||
env(did::set(alice),
|
||||
did::uri(""),
|
||||
did::document(""),
|
||||
did::data(""),
|
||||
ter(temEMPTY_DID));
|
||||
env(did::set(alice), did::uri(""), did::document(""), did::data(""), ter(temEMPTY_DID));
|
||||
env.close();
|
||||
BEAST_EXPECT(ownerCount(env, alice) == 0);
|
||||
|
||||
@@ -133,19 +127,14 @@ struct DID_test : public beast::unit_test::suite
|
||||
BEAST_EXPECT(ownerCount(env, alice) == 0);
|
||||
|
||||
// attestation is too long
|
||||
env(did::set(alice),
|
||||
did::document("data"),
|
||||
did::data(longString),
|
||||
ter(temMALFORMED));
|
||||
env(did::set(alice), did::document("data"), did::data(longString), ter(temMALFORMED));
|
||||
env.close();
|
||||
BEAST_EXPECT(ownerCount(env, alice) == 0);
|
||||
|
||||
// some empty fields, some optional fields
|
||||
// pre-fix amendment
|
||||
auto const fixEnabled = env.current()->rules().enabled(fixEmptyDID);
|
||||
env(did::set(alice),
|
||||
did::uri(""),
|
||||
fixEnabled ? ter(tecEMPTY_DID) : ter(tesSUCCESS));
|
||||
env(did::set(alice), did::uri(""), fixEnabled ? ter(tecEMPTY_DID) : ter(tesSUCCESS));
|
||||
env.close();
|
||||
auto const expectedOwnerReserve = fixEnabled ? 0 : 1;
|
||||
BEAST_EXPECT(ownerCount(env, alice) == expectedOwnerReserve);
|
||||
@@ -231,10 +220,7 @@ struct DID_test : public beast::unit_test::suite
|
||||
BEAST_EXPECT(ownerCount(env, francis) == 1);
|
||||
|
||||
// URI + DIDDocument + Data
|
||||
env(did::set(george),
|
||||
did::uri("uri"),
|
||||
did::document("data"),
|
||||
did::data("attest"));
|
||||
env(did::set(george), did::uri("uri"), did::document("data"), did::data("attest"));
|
||||
BEAST_EXPECT(ownerCount(env, george) == 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user