mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
fix: Additional AccountKeyley test cases
This commit is contained in:
@@ -19,6 +19,12 @@ TEST_F(AccountKeyletImpl, MatchesAccountKeyletFunction)
|
||||
expectKeyletMatches(makeHost()->accountKeylet(owner), keylet::account(owner.id()));
|
||||
}
|
||||
|
||||
TEST_F(AccountKeyletImpl, NonExistentAccountStillComputesKeylet)
|
||||
{
|
||||
auto const nobody = Account{"nobody"};
|
||||
expectKeyletMatches(makeHost()->accountKeylet(nobody), keylet::account(nobody.id()));
|
||||
}
|
||||
|
||||
TEST_F(AccountKeyletImpl, UnsetAccountIsInvalidAccount)
|
||||
{
|
||||
expectError(makeHost()->accountKeylet(AccountID{}), HostFunctionError::InvalidAccount);
|
||||
|
||||
Reference in New Issue
Block a user