LibCrypto: Convert BigFraction stringification to String

This commit is contained in:
Timothy Flynn 2024-12-03 11:36:08 -05:00 committed by Tim Flynn
commit e6c96ce57e
Notes: github-actions[bot] 2024-12-04 13:02:44 +00:00
3 changed files with 4 additions and 4 deletions

View file

@ -23,6 +23,6 @@ TEST_CASE(roundtrip_from_string)
for (auto valid_number_string : valid_number_strings) {
auto result = TRY_OR_FAIL(Crypto::BigFraction::from_string(valid_number_string));
auto precision = valid_number_string.length() - valid_number_string.find('.').value();
EXPECT_EQ(result.to_byte_string(precision), valid_number_string);
EXPECT_EQ(result.to_string(precision), valid_number_string);
}
}