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:
parent
a23ccd76fb
commit
072d53de9b
1 changed files with 4 additions and 4 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue