diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-04-21 18:34:15 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-04-21 18:34:15 +0300 |
commit | 3be3d993576fbce97cfa6068e427334deb5feb96 (patch) | |
tree | 8c5579947536487f786943b2d7892cef4497f507 /formatting.c | |
parent | 6c4ec5c0bd46b1292d15a789560fb5acd813bbce (diff) | |
download | stdu-work/1.0.0.tar.gz stdu-work/1.0.0.zip |
Minor fixeswork/1.0.0
Diffstat (limited to 'formatting.c')
-rw-r--r-- | formatting.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/formatting.c b/formatting.c index ac0222c..60f37ee 100644 --- a/formatting.c +++ b/formatting.c @@ -273,7 +273,7 @@ char* test_floored_exponent_notation() { exp_notated res = ull_floored_exponent_notation(9489345, 3); snprintf(msg, bufsize, - "ull_floored_exponent_notation(9489345, 3): expected 948*10^4, got %d*%d^%d", + "ull_floored_exponent_notation(9489345, 3): expected 948*10^4, got %llu*%d^%d", res.mantissa, res.base, res.exponent ); mt_assert( @@ -284,7 +284,7 @@ char* test_floored_exponent_notation() { res = ull_floored_exponent_notation_base(3145733, 1, 1024); snprintf(msg, bufsize, - "ull_floored_exponent_notation_base(3145733, 1, 1024): expected 3*1024^2, got %d*%d^%d", + "ull_floored_exponent_notation_base(3145733, 1, 1024): expected 3*1024^2, got %llu*%d^%d", res.mantissa, res.base, res.exponent ); mt_assert( @@ -303,7 +303,7 @@ char* test_ceiled_exponent_notation() { exp_notated res = ull_ceiled_exponent_notation(9489345, 3); snprintf(msg, bufsize, - "ull_ceiled_exponent_notation(9489345, 3): expected 949*10^4, got %d*%d^%d", + "ull_ceiled_exponent_notation(9489345, 3): expected 949*10^4, got %llu*%d^%d", res.mantissa, res.base, res.exponent ); mt_assert( @@ -314,7 +314,7 @@ char* test_ceiled_exponent_notation() { res = ull_ceiled_exponent_notation_base(3145733, 1, 1024); snprintf(msg, bufsize, - "ull_ceiled_exponent_notation_base(3145733, 1, 1024): expected 4*1024^2, got %d*%d^%d", + "ull_ceiled_exponent_notation_base(3145733, 1, 1024): expected 4*1024^2, got %llu*%d^%d", res.mantissa, res.base, res.exponent ); mt_assert( |