From 57c78c56bade3b57dffde064bfc6a610e4d94ae1 Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Thu, 24 Jul 2025 14:41:25 -0400 Subject: [PATCH] fixup! fixup! Fix divide by 0 error on 0-interest loans; allow broker to self-lend --- src/test/app/Loan_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/app/Loan_test.cpp b/src/test/app/Loan_test.cpp index c9a6a86e05..57a863a4ad 100644 --- a/src/test/app/Loan_test.cpp +++ b/src/test/app/Loan_test.cpp @@ -1844,7 +1844,7 @@ class Loan_test : public beast::unit_test::suite ++types[object[sfLedgerEntryType].asString()]; } BEAST_EXPECT(types.size() == 4); - for (std::string const& type : + for (std::string const type : {"MPToken", "Vault", "LoanBroker", "Loan"}) { BEAST_EXPECT(types[type] == 1);