diff options
author | kcgen <kcgen@users.noreply.github.com> | 2022-08-27 00:27:02 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2022-08-28 17:13:34 +0300 |
commit | 6debb3a7cf72f21155a20bbad1a9d75c8d3c8ff5 (patch) | |
tree | e8d21ebf17f8b7105655c5173defedd25b063daf /tests | |
parent | 5504e4004ae043f844a70450479bcc1d23e2106a (diff) |
Limit the integer distribution type to no smaller than 16-bit
When adding the random generator to the test cases, VisualStudio indicated
that their random distribution type can only go down to 16-bit:
"C:\Program Files\Microsoft Visual
Studio\2022\Enterprise\VC\Tools\MSVC\14.29.30133\include\random(1839,5):
error C2338: note: char, signed char, unsigned char, char8_t, int8_t, and
uint8_t are not allowed"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/support_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/support_tests.cpp b/tests/support_tests.cpp index 9e3140490..38923bd3f 100644 --- a/tests/support_tests.cpp +++ b/tests/support_tests.cpp @@ -217,7 +217,7 @@ TEST(CreateRandomizer, RangeOfLetters) ASSERT_EQ('A', 65); ASSERT_EQ('z', 122); - test_randomizer('A', 'z'); + test_randomizer<int16_t>('A', 'z'); } TEST(CreateRandomizer, RangeOfFloats) |