UnitTests: Use constexpr

This commit is contained in:
Dr. Dystopia
2025-04-23 07:24:48 +02:00
parent 89873d6238
commit 947bdea590
6 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@ TEST(SHA1, Vectors)
{
const char* msg;
const Common::SHA1::Digest expected;
} const vectors[]{
} constexpr vectors[]{
{"", {0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, 0x0d, 0x32, 0x55,
0xbf, 0xef, 0x95, 0x60, 0x18, 0x90, 0xaf, 0xd8, 0x07, 0x09}},
{"abc", {0xa9, 0x99, 0x3e, 0x36, 0x47, 0x06, 0x81, 0x6a, 0xba, 0x3e,