From 072d53de9b6c8ffba018ec852ee900a632663b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=D1=91pa=20Dolgorukov?= <63650851+stepan-dolgorukov@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:28:14 +0500 Subject: [PATCH] coretests: Fix MSVC C4146 warning in the test "get_xtype_from_string" (#503) * Change macros for creating test names * Add test for values of types int{16,32,64}_t * Fix MSVC C4146 warning --------- Co-authored-by: sowle --- tests/unit_tests/get_xtype_from_string.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit_tests/get_xtype_from_string.cpp b/tests/unit_tests/get_xtype_from_string.cpp index 5bcb74df..0a520c16 100644 --- a/tests/unit_tests/get_xtype_from_string.cpp +++ b/tests/unit_tests/get_xtype_from_string.cpp @@ -151,10 +151,10 @@ TEST_neg(int16_t, "+32768"); // 2^15 TEST_neg(int16_t, "-32769"); // -2^15 - 1 TEST_neg(int16_t, ""); -TEST_pos(int32_t, 2'147'483'647, "2147483647"); // 2^31 - 1 -TEST_pos(int32_t, -2'147'483'648, "-2147483648"); // -2^31 -TEST_pos(int32_t, 0, "-0"); -TEST_pos(int32_t, 0, "+0"); +TEST_pos(int32_t, 2'147'483'647, "2147483647"); // 2^31 - 1 +TEST_pos(int32_t, -2'147'483'647 - 1, "-2147483648"); // -2^31 +TEST_pos(int32_t, 0, "-0"); +TEST_pos(int32_t, 0, "+0"); TEST_neg(int32_t, "-2147483649"); TEST_neg(int32_t, "2147483648");