mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 06:38:22 +00:00
LibCrypto: Convert BigFraction stringification to String
This commit is contained in:
parent
5cfd50224c
commit
e6c96ce57e
Notes:
github-actions[bot]
2024-12-04 13:02:44 +00:00
Author: https://github.com/trflynn89
Commit: e6c96ce57e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2731
Reviewed-by: https://github.com/shannonbooth
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue