summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2020-07-02 16:31:35 -0700
committerBart Van Assche <bvanassche@acm.org>2020-07-02 16:31:57 -0700
commit78c14fab5f339e0165ab32d3c50efbed16950489 (patch)
treeeda12c71af479033388ca043bcc835cc64b0250c /unittests
parent53916bbd100ef806a7af6ece50c4ee0569bac4c6 (diff)
downloadfio-78c14fab5f339e0165ab32d3c50efbed16950489.tar.gz
fio-78c14fab5f339e0165ab32d3c50efbed16950489.tar.bz2
num2str(): Add the E (exa) prefix
This change guarantees that all 64-bit integers that should be assigned a multiplier are assigned a multiplier. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Diffstat (limited to 'unittests')
-rw-r--r--unittests/lib/num2str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/lib/num2str.c b/unittests/lib/num2str.c
index 931e28a4..a3492a8d 100644
--- a/unittests/lib/num2str.c
+++ b/unittests/lib/num2str.c
@@ -19,8 +19,8 @@ static const struct testcase testcases[] = {
{ UINT64_MAX, 99, 1, 0, N2S_NONE, "18446744073709551615" },
{ 18446744073709551, 2, 1, 0, N2S_NONE, "18P" },
{ 18446744073709551, 4, 1, 0, N2S_NONE, "18.4P" },
- { UINT64_MAX, 2, 1, 0, N2S_NONE, "18" },
- { UINT64_MAX, 4, 1, 0, N2S_NONE, "18.4" },
+ { UINT64_MAX, 2, 1, 0, N2S_NONE, "18E" },
+ { UINT64_MAX, 4, 1, 0, N2S_NONE, "18.4E" },
};
static void test_num2str(void)