mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-28 23:55:52 +00:00
@@ -73,13 +73,22 @@ generateTestValuesForParametersTest()
|
||||
{
|
||||
return std::vector<BookChangesParamTestCaseBundle>{
|
||||
BookChangesParamTestCaseBundle{
|
||||
"LedgerHashInvalid", R"({"ledger_hash":"1"})", "invalidParams", "ledger_hashMalformed"
|
||||
.testName = "LedgerHashInvalid",
|
||||
.testJson = R"({"ledger_hash":"1"})",
|
||||
.expectedError = "invalidParams",
|
||||
.expectedErrorMessage = "ledger_hashMalformed"
|
||||
},
|
||||
BookChangesParamTestCaseBundle{
|
||||
"LedgerHashNotString", R"({"ledger_hash":1})", "invalidParams", "ledger_hashNotString"
|
||||
.testName = "LedgerHashNotString",
|
||||
.testJson = R"({"ledger_hash":1})",
|
||||
.expectedError = "invalidParams",
|
||||
.expectedErrorMessage = "ledger_hashNotString"
|
||||
},
|
||||
BookChangesParamTestCaseBundle{
|
||||
"LedgerIndexInvalid", R"({"ledger_index":"a"})", "invalidParams", "ledgerIndexMalformed"
|
||||
.testName = "LedgerIndexInvalid",
|
||||
.testJson = R"({"ledger_index":"a"})",
|
||||
.expectedError = "invalidParams",
|
||||
.expectedErrorMessage = "ledgerIndexMalformed"
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user