From 5d64e8a26388e2abbf6a6585d17392d6e944ae7b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 1 Jul 2023 00:38:51 +0200 Subject: Merging upstream version 2.5. Signed-off-by: Daniel Baumann --- unit/test-suffix-si-parse.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'unit/test-suffix-si-parse.c') diff --git a/unit/test-suffix-si-parse.c b/unit/test-suffix-si-parse.c index bc92455..54cff0e 100644 --- a/unit/test-suffix-si-parse.c +++ b/unit/test-suffix-si-parse.c @@ -43,6 +43,12 @@ static struct tonum_test tonum_tests[] = { { "2,33", 0, -EINVAL }, { "3..3", 0, -EINVAL }, { "123.12MM", 0, -EINVAL }, + { "800G", 800000000000, 0 }, + { "800GG", 0, -EINVAL }, + { "800G800", 0, -EINVAL }, + { "800.0G", 800000000000, 0 }, + { "800.G", 0, -EINVAL }, + { "800.", 0, -EINVAL }, }; void tonum_test(struct tonum_test *test) -- cgit v1.2.3