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 <crypto.sowle@gmail.com>
This commit is contained in:
Stёpa Dolgorukov 2025-01-28 14:28:14 +05:00 committed by GitHub
parent a23ccd76fb
commit 072d53de9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");