fix: Additional AccountKeyley test cases

This commit is contained in:
TimothyBanks
2026-08-18 13:07:52 -04:00
parent dc0326a2a0
commit ec64f23736

View File

@@ -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);