From b2735eb30ca01c0762f636c9a5a8fd9706002752 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 16 Nov 2018 12:56:36 +0200 Subject: [PATCH] Fixed fmt_helper tests --- tests/test_fmt_helper.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_fmt_helper.cpp b/tests/test_fmt_helper.cpp index 9ebbcf73..97a61960 100644 --- a/tests/test_fmt_helper.cpp +++ b/tests/test_fmt_helper.cpp @@ -8,7 +8,7 @@ void test_pad2(int n, const char *expected) REQUIRE(fmt::to_string(buf) == expected); } -void test_pad3(int n, const char *expected) +void test_pad3(uint32_t n, const char *expected) { fmt::memory_buffer buf; spdlog::details::fmt_helper::pad3(n, buf); @@ -46,7 +46,6 @@ TEST_CASE("pad3", "[fmt_helper]") test_pad3(23, "023"); test_pad3(123, "123"); test_pad3(1234, "1234"); - test_pad3(-5, "-05"); } TEST_CASE("pad6", "[fmt_helper]") @@ -60,10 +59,9 @@ TEST_CASE("pad6", "[fmt_helper]") test_pad6(123456, "123456"); } - TEST_CASE("pad9", "[fmt_helper]") { - test_pad9(0,"000000000"); + test_pad9(0, "000000000"); test_pad9(3, "000000003"); test_pad9(23, "000000023"); test_pad9(123, "000000123");