feat: Add LNBIts multi currency support to mcap
This commit is contained in:
parent
7cd4c8dd37
commit
a87374fc67
4 changed files with 75 additions and 48 deletions
|
@ -287,6 +287,12 @@ void test_SatsPerCurrencyWithCurrencyCode(void)
|
|||
TEST_ASSERT_EQUAL_STRING("SATS/ZAR", output[0].c_str());
|
||||
}
|
||||
|
||||
void test_McapWithCurrencyCode(void)
|
||||
{
|
||||
std::array<std::string, NUM_SCREENS> output = parseMarketCap(100000, 10000, "PYG", true);
|
||||
TEST_ASSERT_EQUAL_STRING("PYG/MCAP", output[0].c_str());
|
||||
}
|
||||
|
||||
// not needed when using generate_test_runner.rb
|
||||
int runUnityTests(void)
|
||||
{
|
||||
|
@ -312,6 +318,7 @@ int runUnityTests(void)
|
|||
RUN_TEST(test_PriceSuffixModeMowCompact);
|
||||
RUN_TEST(test_PriceDataWithCurrencyCode);
|
||||
RUN_TEST(test_SatsPerCurrencyWithCurrencyCode);
|
||||
RUN_TEST(test_McapWithCurrencyCode);
|
||||
|
||||
return UNITY_END();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue