fix: remove negative rate test failing on MacOS (#452)

This commit is contained in:
Niq Dudfield
2025-03-03 19:12:13 +07:00
committed by GitHub
parent aeece15096
commit 88b01514c1

View File

@@ -2102,9 +2102,10 @@ struct Remit_test : public beast::unit_test::suite
std::string result;
TER code;
};
std::array<TestRateData, 10> testCases = {{
// We test only rates that that can fit in a STI_UINT32.
// Negative rates can't be serdes so there is no need to test them.
std::array<TestRateData, 9> testCases = {{
{0.0, USD(100), "900", tesSUCCESS},
{-1.0, USD(100), "900", temBAD_TRANSFER_RATE},
{0.9, USD(100), "900", temBAD_TRANSFER_RATE},
{1.0, USD(100), "900", tesSUCCESS},
{1.1, USD(100), "890", tesSUCCESS},