summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-18 22:51:52 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-18 22:53:01 +0300
commit40de3bee0278d6584561a827123bc342934adccb (patch)
tree460ba68f29ec25377ef1971989c4c46e507ea3da /src/resources
parentdffd0a4a8e99196ad27f8fde2430b09dd29cac57 (diff)
downloadmanaverse-40de3bee0278d6584561a827123bc342934adccb.tar.gz
manaverse-40de3bee0278d6584561a827123bc342934adccb.tar.bz2
manaverse-40de3bee0278d6584561a827123bc342934adccb.tar.xz
manaverse-40de3bee0278d6584561a827123bc342934adccb.zip
Add support for additional unit test library doctest.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/dye/dye_unittest.cc292
-rw-r--r--src/resources/dye/dyepalette_unittest.cc6
-rw-r--r--src/resources/map/maplayer_unittest.cc23
-rw-r--r--src/resources/map/speciallayer_unittest.cc9
-rw-r--r--src/resources/mstack_unittest.cc16
-rw-r--r--src/resources/resourcemanager/resourcemanager_unittest.cc4
-rw-r--r--src/resources/sprite/animatedsprite_unittest.cc4
7 files changed, 182 insertions, 172 deletions
diff --git a/src/resources/dye/dye_unittest.cc b/src/resources/dye/dye_unittest.cc
index 7ea5793b6..0c0e26eb7 100644
--- a/src/resources/dye/dye_unittest.cc
+++ b/src/resources/dye/dye_unittest.cc
@@ -55,7 +55,7 @@
#ifdef USE_OPENGL
-TEST_CASE("Dye leak test1")
+TEST_CASE("Dye leak test1", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
@@ -64,7 +64,7 @@ TEST_CASE("Dye leak test1")
delete2(logger);
}
-TEST_CASE("Dye replaceSOGLColor 1 1")
+TEST_CASE("Dye replaceSOGLColor 1 1", "")
{
DyePalette palette("#00ff00,000011", 6);
uint32_t data[1];
@@ -73,7 +73,7 @@ TEST_CASE("Dye replaceSOGLColor 1 1")
REQUIRE(data[0] == buildHex(0x01, 0x02, 0x03, 0x10));
}
-TEST_CASE("Dye replaceSOGLColor 1 2")
+TEST_CASE("Dye replaceSOGLColor 1 2", "")
{
DyePalette palette("#01ff02,030411", 6);
uint32_t data[1];
@@ -82,7 +82,7 @@ TEST_CASE("Dye replaceSOGLColor 1 2")
REQUIRE(data[0] == buildHex(0x20, 0x11, 0x04, 0x03));
}
-TEST_CASE("Dye replaceSOGLColor 1 3")
+TEST_CASE("Dye replaceSOGLColor 1 3", "")
{
DyePalette palette("#404040,200000,0100ee,102030", 6);
uint32_t data[1];
@@ -91,7 +91,7 @@ TEST_CASE("Dye replaceSOGLColor 1 3")
REQUIRE(data[0] == buildHex(0x40, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceSOGLColor 2 1")
+TEST_CASE("Dye replaceSOGLColor 2 1", "")
{
DyePalette palette("#01ff02,030411", 6);
uint32_t data[2];
@@ -102,7 +102,7 @@ TEST_CASE("Dye replaceSOGLColor 2 1")
REQUIRE(data[1] == buildHex(0x30, 0x11, 0x04, 0x03));
}
-TEST_CASE("Dye replaceSOGLColor 4 1")
+TEST_CASE("Dye replaceSOGLColor 4 1", "")
{
DyePalette palette("#01ff02,030411", 6);
uint32_t data[4];
@@ -117,7 +117,7 @@ TEST_CASE("Dye replaceSOGLColor 4 1")
REQUIRE(data[3] == buildHex(0x50, 0x02, 0xff, 0x02));
}
-TEST_CASE("Dye replaceSOGLColor 8 1")
+TEST_CASE("Dye replaceSOGLColor 8 1", "")
{
DyePalette palette("#01ff02,030411,01ee02,010203", 6);
uint32_t data[8];
@@ -140,7 +140,7 @@ TEST_CASE("Dye replaceSOGLColor 8 1")
REQUIRE(data[7] == buildHex(0x60, 0x02, 0xff, 0x02));
}
-TEST_CASE("Dye replaceSOGLColor 1 1 default")
+TEST_CASE("Dye replaceSOGLColor 1 1 default", "")
{
DyePalette palette("#00ff00,000011", 6);
uint32_t data[1];
@@ -149,7 +149,7 @@ TEST_CASE("Dye replaceSOGLColor 1 1 default")
REQUIRE(data[0] == buildHex(0x01, 0x02, 0x03, 0x10));
}
-TEST_CASE("Dye replaceSOGLColor 1 2 default")
+TEST_CASE("Dye replaceSOGLColor 1 2 default", "")
{
DyePalette palette("#01ff02,030411", 6);
uint32_t data[1];
@@ -158,7 +158,7 @@ TEST_CASE("Dye replaceSOGLColor 1 2 default")
REQUIRE(data[0] == buildHex(0x20, 0x11, 0x04, 0x03));
}
-TEST_CASE("Dye replaceSOGLColor 1 3 default")
+TEST_CASE("Dye replaceSOGLColor 1 3 default", "")
{
DyePalette palette("#404040,200000,0100ee,102030", 6);
uint32_t data[1];
@@ -167,7 +167,7 @@ TEST_CASE("Dye replaceSOGLColor 1 3 default")
REQUIRE(data[0] == buildHex(0x40, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceSOGLColor 2 1 default")
+TEST_CASE("Dye replaceSOGLColor 2 1 default", "")
{
DyePalette palette("#01ff02,030411", 6);
uint32_t data[2];
@@ -178,7 +178,7 @@ TEST_CASE("Dye replaceSOGLColor 2 1 default")
REQUIRE(data[1] == buildHex(0x30, 0x11, 0x04, 0x03));
}
-TEST_CASE("Dye replaceSOGLColor 4 1 default")
+TEST_CASE("Dye replaceSOGLColor 4 1 default", "")
{
DyePalette palette("#01ff02,030411", 6);
uint32_t data[4];
@@ -193,7 +193,7 @@ TEST_CASE("Dye replaceSOGLColor 4 1 default")
REQUIRE(data[3] == buildHex(0x50, 0x02, 0xff, 0x02));
}
-TEST_CASE("Dye replaceSOGLColor 8 1 default")
+TEST_CASE("Dye replaceSOGLColor 8 1 default", "")
{
DyePalette palette("#01ff02,030411,01ee02,010203", 6);
uint32_t data[8];
@@ -216,7 +216,7 @@ TEST_CASE("Dye replaceSOGLColor 8 1 default")
REQUIRE(data[7] == buildHex(0x60, 0x02, 0xff, 0x02));
}
-TEST_CASE("Dye replaceSOGLColor 8 1 simd")
+TEST_CASE("Dye replaceSOGLColor 8 1 simd", "")
{
DyePalette palette("#01ff02,030411,01ee02,010203", 6);
uint32_t data[8];
@@ -239,7 +239,7 @@ TEST_CASE("Dye replaceSOGLColor 8 1 simd")
REQUIRE(data[7] == buildHex(0x60, 0x02, 0xff, 0x02));
}
-TEST_CASE("Dye replaceSOGLColor 8 1 sse2")
+TEST_CASE("Dye replaceSOGLColor 8 1 sse2", "")
{
DyePalette palette("#01ff02,030411,01ee02,010203", 6);
uint32_t data[8];
@@ -262,7 +262,7 @@ TEST_CASE("Dye replaceSOGLColor 8 1 sse2")
REQUIRE(data[7] == buildHex(0x60, 0x02, 0xff, 0x02));
}
-TEST_CASE("Dye replaceSOGLColor 8 1 avx2")
+TEST_CASE("Dye replaceSOGLColor 8 1 avx2", "")
{
DyePalette palette("#01ff02,030411,01ee02,010203", 6);
uint32_t data[8];
@@ -286,7 +286,7 @@ TEST_CASE("Dye replaceSOGLColor 8 1 avx2")
}
-TEST_CASE("Dye replaceAOGLColor 1 1")
+TEST_CASE("Dye replaceAOGLColor 1 1", "")
{
DyePalette palette("#00ff0010,00001120", 8);
uint32_t data[1];
@@ -295,7 +295,7 @@ TEST_CASE("Dye replaceAOGLColor 1 1")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceAOGLColor 1 2")
+TEST_CASE("Dye replaceAOGLColor 1 2", "")
{
DyePalette palette("#00ff0120,020311ff", 8);
uint32_t data[1];
@@ -304,7 +304,7 @@ TEST_CASE("Dye replaceAOGLColor 1 2")
REQUIRE(data[0] == buildHex(0xff, 0x11, 0x03, 0x02));
}
-TEST_CASE("Dye replaceAOGLColor 1 3")
+TEST_CASE("Dye replaceAOGLColor 1 3", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[1];
@@ -313,7 +313,7 @@ TEST_CASE("Dye replaceAOGLColor 1 3")
REQUIRE(data[0] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 2 1")
+TEST_CASE("Dye replaceAOGLColor 2 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[2];
@@ -324,7 +324,7 @@ TEST_CASE("Dye replaceAOGLColor 2 1")
REQUIRE(data[1] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 4 1")
+TEST_CASE("Dye replaceAOGLColor 4 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[4];
@@ -339,7 +339,7 @@ TEST_CASE("Dye replaceAOGLColor 4 1")
REQUIRE(data[3] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 8 1")
+TEST_CASE("Dye replaceAOGLColor 8 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -362,7 +362,7 @@ TEST_CASE("Dye replaceAOGLColor 8 1")
REQUIRE(data[7] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 1 1 default")
+TEST_CASE("Dye replaceAOGLColor 1 1 default", "")
{
DyePalette palette("#00ff0010,00001120", 8);
uint32_t data[1];
@@ -371,7 +371,7 @@ TEST_CASE("Dye replaceAOGLColor 1 1 default")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceAOGLColor 1 2 default")
+TEST_CASE("Dye replaceAOGLColor 1 2 default", "")
{
DyePalette palette("#00ff0120,020311ff", 8);
uint32_t data[1];
@@ -380,7 +380,7 @@ TEST_CASE("Dye replaceAOGLColor 1 2 default")
REQUIRE(data[0] == buildHex(0xff, 0x11, 0x03, 0x02));
}
-TEST_CASE("Dye replaceAOGLColor 1 3 default")
+TEST_CASE("Dye replaceAOGLColor 1 3 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[1];
@@ -389,7 +389,7 @@ TEST_CASE("Dye replaceAOGLColor 1 3 default")
REQUIRE(data[0] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 2 1 default")
+TEST_CASE("Dye replaceAOGLColor 2 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[2];
@@ -400,7 +400,7 @@ TEST_CASE("Dye replaceAOGLColor 2 1 default")
REQUIRE(data[1] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 4 1 default")
+TEST_CASE("Dye replaceAOGLColor 4 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[4];
@@ -415,7 +415,7 @@ TEST_CASE("Dye replaceAOGLColor 4 1 default")
REQUIRE(data[3] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 8 1 default")
+TEST_CASE("Dye replaceAOGLColor 8 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -438,7 +438,7 @@ TEST_CASE("Dye replaceAOGLColor 8 1 default")
REQUIRE(data[7] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 8 1 simd")
+TEST_CASE("Dye replaceAOGLColor 8 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -461,7 +461,7 @@ TEST_CASE("Dye replaceAOGLColor 8 1 simd")
REQUIRE(data[7] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 8 1 sse2")
+TEST_CASE("Dye replaceAOGLColor 8 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -484,7 +484,7 @@ TEST_CASE("Dye replaceAOGLColor 8 1 sse2")
REQUIRE(data[7] == buildHex(0xff, 0x30, 0x20, 0x10));
}
-TEST_CASE("Dye replaceAOGLColor 8 1 avx2")
+TEST_CASE("Dye replaceAOGLColor 8 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -509,7 +509,7 @@ TEST_CASE("Dye replaceAOGLColor 8 1 avx2")
#endif // USE_OPENGL
-TEST_CASE("Dye replaceSColor 1 1")
+TEST_CASE("Dye replaceSColor 1 1", "")
{
DyePalette palette("#00ff00,000011", 6);
uint32_t data[1];
@@ -518,7 +518,7 @@ TEST_CASE("Dye replaceSColor 1 1")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceSColor 1 2")
+TEST_CASE("Dye replaceSColor 1 2", "")
{
DyePalette palette("#403020,706050", 6);
uint32_t data[1];
@@ -527,7 +527,7 @@ TEST_CASE("Dye replaceSColor 1 2")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 1 3")
+TEST_CASE("Dye replaceSColor 1 3", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[1];
@@ -536,7 +536,7 @@ TEST_CASE("Dye replaceSColor 1 3")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 2 1")
+TEST_CASE("Dye replaceSColor 2 1", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[2];
@@ -547,7 +547,7 @@ TEST_CASE("Dye replaceSColor 2 1")
REQUIRE(data[1] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 3 1")
+TEST_CASE("Dye replaceSColor 3 1", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[3];
@@ -560,7 +560,7 @@ TEST_CASE("Dye replaceSColor 3 1")
REQUIRE(data[2] == buildHex(0x70, 0x60, 0x50, 0x30));
}
-TEST_CASE("Dye replaceSColor 4 1")
+TEST_CASE("Dye replaceSColor 4 1", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[4];
@@ -575,7 +575,7 @@ TEST_CASE("Dye replaceSColor 4 1")
REQUIRE(data[3] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 5 1")
+TEST_CASE("Dye replaceSColor 5 1", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[5];
@@ -592,7 +592,7 @@ TEST_CASE("Dye replaceSColor 5 1")
REQUIRE(data[4] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 7 1")
+TEST_CASE("Dye replaceSColor 7 1", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[7];
@@ -613,7 +613,7 @@ TEST_CASE("Dye replaceSColor 7 1")
REQUIRE(data[6] == buildHex(0xff, 0x40, 0x20, 0x50));
}
-TEST_CASE("Dye replaceSColor 8 1")
+TEST_CASE("Dye replaceSColor 8 1", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[8];
@@ -636,7 +636,7 @@ TEST_CASE("Dye replaceSColor 8 1")
REQUIRE(data[7] == buildHex(0x70, 0x60, 0x50, 0x60));
}
-TEST_CASE("Dye replaceSColor 9 1")
+TEST_CASE("Dye replaceSColor 9 1", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[9];
@@ -661,7 +661,7 @@ TEST_CASE("Dye replaceSColor 9 1")
REQUIRE(data[8] == buildHex(0x70, 0x60, 0x50, 0x70));
}
-TEST_CASE("Dye replaceSColor 10 1")
+TEST_CASE("Dye replaceSColor 10 1", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[10];
@@ -688,7 +688,7 @@ TEST_CASE("Dye replaceSColor 10 1")
REQUIRE(data[9] == buildHex(0x70, 0x60, 0x50, 0x80));
}
-TEST_CASE("Dye replaceSColor 1 1 default")
+TEST_CASE("Dye replaceSColor 1 1 default", "")
{
DyePalette palette("#00ff00,000011", 6);
uint32_t data[1];
@@ -697,7 +697,7 @@ TEST_CASE("Dye replaceSColor 1 1 default")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceSColor 1 2 default")
+TEST_CASE("Dye replaceSColor 1 2 default", "")
{
DyePalette palette("#403020,706050", 6);
uint32_t data[1];
@@ -706,7 +706,7 @@ TEST_CASE("Dye replaceSColor 1 2 default")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 1 3 default")
+TEST_CASE("Dye replaceSColor 1 3 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[1];
@@ -715,7 +715,7 @@ TEST_CASE("Dye replaceSColor 1 3 default")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 2 1 default")
+TEST_CASE("Dye replaceSColor 2 1 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[2];
@@ -726,7 +726,7 @@ TEST_CASE("Dye replaceSColor 2 1 default")
REQUIRE(data[1] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 3 1 default")
+TEST_CASE("Dye replaceSColor 3 1 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[3];
@@ -739,7 +739,7 @@ TEST_CASE("Dye replaceSColor 3 1 default")
REQUIRE(data[2] == buildHex(0x70, 0x60, 0x50, 0x30));
}
-TEST_CASE("Dye replaceSColor 4 1 default")
+TEST_CASE("Dye replaceSColor 4 1 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[4];
@@ -754,7 +754,7 @@ TEST_CASE("Dye replaceSColor 4 1 default")
REQUIRE(data[3] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 5 1 default")
+TEST_CASE("Dye replaceSColor 5 1 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[5];
@@ -771,7 +771,7 @@ TEST_CASE("Dye replaceSColor 5 1 default")
REQUIRE(data[4] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 7 1 default")
+TEST_CASE("Dye replaceSColor 7 1 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[7];
@@ -792,7 +792,7 @@ TEST_CASE("Dye replaceSColor 7 1 default")
REQUIRE(data[6] == buildHex(0xff, 0x40, 0x20, 0x50));
}
-TEST_CASE("Dye replaceSColor 8 1 default")
+TEST_CASE("Dye replaceSColor 8 1 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[8];
@@ -815,7 +815,7 @@ TEST_CASE("Dye replaceSColor 8 1 default")
REQUIRE(data[7] == buildHex(0x70, 0x60, 0x50, 0x60));
}
-TEST_CASE("Dye replaceSColor 9 1 default")
+TEST_CASE("Dye replaceSColor 9 1 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[9];
@@ -840,7 +840,7 @@ TEST_CASE("Dye replaceSColor 9 1 default")
REQUIRE(data[8] == buildHex(0x70, 0x60, 0x50, 0x70));
}
-TEST_CASE("Dye replaceSColor 10 1 default")
+TEST_CASE("Dye replaceSColor 10 1 default", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[10];
@@ -867,7 +867,7 @@ TEST_CASE("Dye replaceSColor 10 1 default")
REQUIRE(data[9] == buildHex(0x70, 0x60, 0x50, 0x80));
}
-TEST_CASE("Dye replaceSColor 1 1 simd")
+TEST_CASE("Dye replaceSColor 1 1 simd", "")
{
DyePalette palette("#00ff00,000011", 6);
uint32_t data[1];
@@ -876,7 +876,7 @@ TEST_CASE("Dye replaceSColor 1 1 simd")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceSColor 1 2 simd")
+TEST_CASE("Dye replaceSColor 1 2 simd", "")
{
DyePalette palette("#403020,706050", 6);
uint32_t data[1];
@@ -885,7 +885,7 @@ TEST_CASE("Dye replaceSColor 1 2 simd")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 1 3 simd")
+TEST_CASE("Dye replaceSColor 1 3 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[1];
@@ -894,7 +894,7 @@ TEST_CASE("Dye replaceSColor 1 3 simd")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 2 1 simd")
+TEST_CASE("Dye replaceSColor 2 1 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[2];
@@ -905,7 +905,7 @@ TEST_CASE("Dye replaceSColor 2 1 simd")
REQUIRE(data[1] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 3 1 simd")
+TEST_CASE("Dye replaceSColor 3 1 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[3];
@@ -918,7 +918,7 @@ TEST_CASE("Dye replaceSColor 3 1 simd")
REQUIRE(data[2] == buildHex(0x70, 0x60, 0x50, 0x30));
}
-TEST_CASE("Dye replaceSColor 4 1 simd")
+TEST_CASE("Dye replaceSColor 4 1 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[4];
@@ -933,7 +933,7 @@ TEST_CASE("Dye replaceSColor 4 1 simd")
REQUIRE(data[3] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 5 1 simd")
+TEST_CASE("Dye replaceSColor 5 1 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[5];
@@ -950,7 +950,7 @@ TEST_CASE("Dye replaceSColor 5 1 simd")
REQUIRE(data[4] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 7 1 simd")
+TEST_CASE("Dye replaceSColor 7 1 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[7];
@@ -971,7 +971,7 @@ TEST_CASE("Dye replaceSColor 7 1 simd")
REQUIRE(data[6] == buildHex(0xff, 0x40, 0x20, 0x50));
}
-TEST_CASE("Dye replaceSColor 8 1 simd")
+TEST_CASE("Dye replaceSColor 8 1 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[8];
@@ -994,7 +994,7 @@ TEST_CASE("Dye replaceSColor 8 1 simd")
REQUIRE(data[7] == buildHex(0x70, 0x60, 0x50, 0x60));
}
-TEST_CASE("Dye replaceSColor 9 1 simd")
+TEST_CASE("Dye replaceSColor 9 1 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[9];
@@ -1019,7 +1019,7 @@ TEST_CASE("Dye replaceSColor 9 1 simd")
REQUIRE(data[8] == buildHex(0x70, 0x60, 0x50, 0x70));
}
-TEST_CASE("Dye replaceSColor 10 1 simd")
+TEST_CASE("Dye replaceSColor 10 1 simd", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[10];
@@ -1046,7 +1046,7 @@ TEST_CASE("Dye replaceSColor 10 1 simd")
REQUIRE(data[9] == buildHex(0x70, 0x60, 0x50, 0x80));
}
-TEST_CASE("Dye replaceSColor 1 1 sse2")
+TEST_CASE("Dye replaceSColor 1 1 sse2", "")
{
DyePalette palette("#00ff00,000011", 6);
uint32_t data[1];
@@ -1055,7 +1055,7 @@ TEST_CASE("Dye replaceSColor 1 1 sse2")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceSColor 1 2 sse2")
+TEST_CASE("Dye replaceSColor 1 2 sse2", "")
{
DyePalette palette("#403020,706050", 6);
uint32_t data[1];
@@ -1064,7 +1064,7 @@ TEST_CASE("Dye replaceSColor 1 2 sse2")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 1 3 sse2")
+TEST_CASE("Dye replaceSColor 1 3 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[1];
@@ -1073,7 +1073,7 @@ TEST_CASE("Dye replaceSColor 1 3 sse2")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 2 1 sse2")
+TEST_CASE("Dye replaceSColor 2 1 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[2];
@@ -1084,7 +1084,7 @@ TEST_CASE("Dye replaceSColor 2 1 sse2")
REQUIRE(data[1] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 3 1 sse2")
+TEST_CASE("Dye replaceSColor 3 1 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[3];
@@ -1097,7 +1097,7 @@ TEST_CASE("Dye replaceSColor 3 1 sse2")
REQUIRE(data[2] == buildHex(0x70, 0x60, 0x50, 0x30));
}
-TEST_CASE("Dye replaceSColor 4 1 sse2")
+TEST_CASE("Dye replaceSColor 4 1 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[4];
@@ -1112,7 +1112,7 @@ TEST_CASE("Dye replaceSColor 4 1 sse2")
REQUIRE(data[3] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 5 1 sse2")
+TEST_CASE("Dye replaceSColor 5 1 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[5];
@@ -1129,7 +1129,7 @@ TEST_CASE("Dye replaceSColor 5 1 sse2")
REQUIRE(data[4] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 7 1 sse2")
+TEST_CASE("Dye replaceSColor 7 1 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[7];
@@ -1150,7 +1150,7 @@ TEST_CASE("Dye replaceSColor 7 1 sse2")
REQUIRE(data[6] == buildHex(0xff, 0x40, 0x20, 0x50));
}
-TEST_CASE("Dye replaceSColor 8 1 sse2")
+TEST_CASE("Dye replaceSColor 8 1 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[8];
@@ -1173,7 +1173,7 @@ TEST_CASE("Dye replaceSColor 8 1 sse2")
REQUIRE(data[7] == buildHex(0x70, 0x60, 0x50, 0x60));
}
-TEST_CASE("Dye replaceSColor 9 1 sse2")
+TEST_CASE("Dye replaceSColor 9 1 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[9];
@@ -1198,7 +1198,7 @@ TEST_CASE("Dye replaceSColor 9 1 sse2")
REQUIRE(data[8] == buildHex(0x70, 0x60, 0x50, 0x70));
}
-TEST_CASE("Dye replaceSColor 10 1 sse2")
+TEST_CASE("Dye replaceSColor 10 1 sse2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[10];
@@ -1225,7 +1225,7 @@ TEST_CASE("Dye replaceSColor 10 1 sse2")
REQUIRE(data[9] == buildHex(0x70, 0x60, 0x50, 0x80));
}
-TEST_CASE("Dye replaceSColor 1 1 avx2")
+TEST_CASE("Dye replaceSColor 1 1 avx2", "")
{
DyePalette palette("#00ff00,000011", 6);
uint32_t data[1];
@@ -1234,7 +1234,7 @@ TEST_CASE("Dye replaceSColor 1 1 avx2")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceSColor 1 2 avx2")
+TEST_CASE("Dye replaceSColor 1 2 avx2", "")
{
DyePalette palette("#403020,706050", 6);
uint32_t data[1];
@@ -1243,7 +1243,7 @@ TEST_CASE("Dye replaceSColor 1 2 avx2")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 1 3 avx2")
+TEST_CASE("Dye replaceSColor 1 3 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[1];
@@ -1252,7 +1252,7 @@ TEST_CASE("Dye replaceSColor 1 3 avx2")
REQUIRE(data[0] == buildHex(0x70, 0x60, 0x50, 0x10));
}
-TEST_CASE("Dye replaceSColor 2 1 avx2")
+TEST_CASE("Dye replaceSColor 2 1 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[2];
@@ -1263,7 +1263,7 @@ TEST_CASE("Dye replaceSColor 2 1 avx2")
REQUIRE(data[1] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 3 1 avx2")
+TEST_CASE("Dye replaceSColor 3 1 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[3];
@@ -1276,7 +1276,7 @@ TEST_CASE("Dye replaceSColor 3 1 avx2")
REQUIRE(data[2] == buildHex(0x70, 0x60, 0x50, 0x30));
}
-TEST_CASE("Dye replaceSColor 4 1 avx2")
+TEST_CASE("Dye replaceSColor 4 1 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[4];
@@ -1291,7 +1291,7 @@ TEST_CASE("Dye replaceSColor 4 1 avx2")
REQUIRE(data[3] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 5 1 avx2")
+TEST_CASE("Dye replaceSColor 5 1 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[5];
@@ -1308,7 +1308,7 @@ TEST_CASE("Dye replaceSColor 5 1 avx2")
REQUIRE(data[4] == buildHex(0x70, 0x60, 0x50, 0x20));
}
-TEST_CASE("Dye replaceSColor 7 1 avx2")
+TEST_CASE("Dye replaceSColor 7 1 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[7];
@@ -1329,7 +1329,7 @@ TEST_CASE("Dye replaceSColor 7 1 avx2")
REQUIRE(data[6] == buildHex(0xff, 0x40, 0x20, 0x50));
}
-TEST_CASE("Dye replaceSColor 8 1 avx2")
+TEST_CASE("Dye replaceSColor 8 1 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[8];
@@ -1352,7 +1352,7 @@ TEST_CASE("Dye replaceSColor 8 1 avx2")
REQUIRE(data[7] == buildHex(0x70, 0x60, 0x50, 0x60));
}
-TEST_CASE("Dye replaceSColor 9 1 avx2")
+TEST_CASE("Dye replaceSColor 9 1 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[9];
@@ -1377,7 +1377,7 @@ TEST_CASE("Dye replaceSColor 9 1 avx2")
REQUIRE(data[8] == buildHex(0x70, 0x60, 0x50, 0x70));
}
-TEST_CASE("Dye replaceSColor 10 1 avx2")
+TEST_CASE("Dye replaceSColor 10 1 avx2", "")
{
DyePalette palette("#123456,000000,ff3020,706050", 6);
uint32_t data[10];
@@ -1405,7 +1405,7 @@ TEST_CASE("Dye replaceSColor 10 1 avx2")
}
-TEST_CASE("Dye replaceAColor 1 1")
+TEST_CASE("Dye replaceAColor 1 1", "")
{
DyePalette palette("#00ff0010,00001120", 8);
uint32_t data[1];
@@ -1414,7 +1414,7 @@ TEST_CASE("Dye replaceAColor 1 1")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceAColor 1 2")
+TEST_CASE("Dye replaceAColor 1 2", "")
{
DyePalette palette("#02ff0120,040311ff", 8);
uint32_t data[1];
@@ -1423,7 +1423,7 @@ TEST_CASE("Dye replaceAColor 1 2")
REQUIRE(data[0] == buildHex(0x04, 0x03, 0x11, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 3")
+TEST_CASE("Dye replaceAColor 1 3", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[1];
@@ -1432,7 +1432,7 @@ TEST_CASE("Dye replaceAColor 1 3")
REQUIRE(data[0] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 2 1")
+TEST_CASE("Dye replaceAColor 2 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[2];
@@ -1443,7 +1443,7 @@ TEST_CASE("Dye replaceAColor 2 1")
REQUIRE(data[1] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 3 1")
+TEST_CASE("Dye replaceAColor 3 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[3];
@@ -1456,7 +1456,7 @@ TEST_CASE("Dye replaceAColor 3 1")
REQUIRE(data[2] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 4 1")
+TEST_CASE("Dye replaceAColor 4 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[4];
@@ -1471,7 +1471,7 @@ TEST_CASE("Dye replaceAColor 4 1")
REQUIRE(data[3] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 5 1")
+TEST_CASE("Dye replaceAColor 5 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[5];
@@ -1488,7 +1488,7 @@ TEST_CASE("Dye replaceAColor 5 1")
REQUIRE(data[4] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 7 1")
+TEST_CASE("Dye replaceAColor 7 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[7];
@@ -1509,7 +1509,7 @@ TEST_CASE("Dye replaceAColor 7 1")
REQUIRE(data[6] == buildHex(0x01, 0x00, 0xee, 0x50));
}
-TEST_CASE("Dye replaceAColor 8 1")
+TEST_CASE("Dye replaceAColor 8 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -1532,7 +1532,7 @@ TEST_CASE("Dye replaceAColor 8 1")
REQUIRE(data[7] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 9 1")
+TEST_CASE("Dye replaceAColor 9 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[9];
@@ -1557,7 +1557,7 @@ TEST_CASE("Dye replaceAColor 9 1")
REQUIRE(data[8] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 10 1")
+TEST_CASE("Dye replaceAColor 10 1", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[10];
@@ -1584,7 +1584,7 @@ TEST_CASE("Dye replaceAColor 10 1")
REQUIRE(data[9] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 1 default")
+TEST_CASE("Dye replaceAColor 1 1 default", "")
{
DyePalette palette("#00ff0010,00001120", 8);
uint32_t data[1];
@@ -1593,7 +1593,7 @@ TEST_CASE("Dye replaceAColor 1 1 default")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceAColor 1 2 default")
+TEST_CASE("Dye replaceAColor 1 2 default", "")
{
DyePalette palette("#02ff0120,040311ff", 8);
uint32_t data[1];
@@ -1602,7 +1602,7 @@ TEST_CASE("Dye replaceAColor 1 2 default")
REQUIRE(data[0] == buildHex(0x04, 0x03, 0x11, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 3 default")
+TEST_CASE("Dye replaceAColor 1 3 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[1];
@@ -1611,7 +1611,7 @@ TEST_CASE("Dye replaceAColor 1 3 default")
REQUIRE(data[0] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 2 1 default")
+TEST_CASE("Dye replaceAColor 2 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[2];
@@ -1622,7 +1622,7 @@ TEST_CASE("Dye replaceAColor 2 1 default")
REQUIRE(data[1] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 3 1 default")
+TEST_CASE("Dye replaceAColor 3 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[3];
@@ -1635,7 +1635,7 @@ TEST_CASE("Dye replaceAColor 3 1 default")
REQUIRE(data[2] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 4 1 default")
+TEST_CASE("Dye replaceAColor 4 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[4];
@@ -1650,7 +1650,7 @@ TEST_CASE("Dye replaceAColor 4 1 default")
REQUIRE(data[3] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 5 1 default")
+TEST_CASE("Dye replaceAColor 5 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[5];
@@ -1667,7 +1667,7 @@ TEST_CASE("Dye replaceAColor 5 1 default")
REQUIRE(data[4] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 7 1 default")
+TEST_CASE("Dye replaceAColor 7 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[7];
@@ -1688,7 +1688,7 @@ TEST_CASE("Dye replaceAColor 7 1 default")
REQUIRE(data[6] == buildHex(0x01, 0x00, 0xee, 0x50));
}
-TEST_CASE("Dye replaceAColor 8 1 default")
+TEST_CASE("Dye replaceAColor 8 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -1711,7 +1711,7 @@ TEST_CASE("Dye replaceAColor 8 1 default")
REQUIRE(data[7] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 9 1 default")
+TEST_CASE("Dye replaceAColor 9 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[9];
@@ -1736,7 +1736,7 @@ TEST_CASE("Dye replaceAColor 9 1 default")
REQUIRE(data[8] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 10 1 default")
+TEST_CASE("Dye replaceAColor 10 1 default", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[10];
@@ -1763,7 +1763,7 @@ TEST_CASE("Dye replaceAColor 10 1 default")
REQUIRE(data[9] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 1 simd")
+TEST_CASE("Dye replaceAColor 1 1 simd", "")
{
DyePalette palette("#00ff0010,00001120", 8);
uint32_t data[1];
@@ -1772,7 +1772,7 @@ TEST_CASE("Dye replaceAColor 1 1 simd")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceAColor 1 2 simd")
+TEST_CASE("Dye replaceAColor 1 2 simd", "")
{
DyePalette palette("#02ff0120,040311ff", 8);
uint32_t data[1];
@@ -1781,7 +1781,7 @@ TEST_CASE("Dye replaceAColor 1 2 simd")
REQUIRE(data[0] == buildHex(0x04, 0x03, 0x11, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 3 simd")
+TEST_CASE("Dye replaceAColor 1 3 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[1];
@@ -1790,7 +1790,7 @@ TEST_CASE("Dye replaceAColor 1 3 simd")
REQUIRE(data[0] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 2 1 simd")
+TEST_CASE("Dye replaceAColor 2 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[2];
@@ -1801,7 +1801,7 @@ TEST_CASE("Dye replaceAColor 2 1 simd")
REQUIRE(data[1] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 3 1 simd")
+TEST_CASE("Dye replaceAColor 3 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[3];
@@ -1814,7 +1814,7 @@ TEST_CASE("Dye replaceAColor 3 1 simd")
REQUIRE(data[2] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 4 1 simd")
+TEST_CASE("Dye replaceAColor 4 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[4];
@@ -1829,7 +1829,7 @@ TEST_CASE("Dye replaceAColor 4 1 simd")
REQUIRE(data[3] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 5 1 simd")
+TEST_CASE("Dye replaceAColor 5 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[5];
@@ -1846,7 +1846,7 @@ TEST_CASE("Dye replaceAColor 5 1 simd")
REQUIRE(data[4] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 7 1 simd")
+TEST_CASE("Dye replaceAColor 7 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[7];
@@ -1867,7 +1867,7 @@ TEST_CASE("Dye replaceAColor 7 1 simd")
REQUIRE(data[6] == buildHex(0x01, 0x00, 0xee, 0x50));
}
-TEST_CASE("Dye replaceAColor 8 1 simd")
+TEST_CASE("Dye replaceAColor 8 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -1890,7 +1890,7 @@ TEST_CASE("Dye replaceAColor 8 1 simd")
REQUIRE(data[7] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 9 1 simd")
+TEST_CASE("Dye replaceAColor 9 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[9];
@@ -1915,7 +1915,7 @@ TEST_CASE("Dye replaceAColor 9 1 simd")
REQUIRE(data[8] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 10 1 simd")
+TEST_CASE("Dye replaceAColor 10 1 simd", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[10];
@@ -1942,7 +1942,7 @@ TEST_CASE("Dye replaceAColor 10 1 simd")
REQUIRE(data[9] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 1 sse2")
+TEST_CASE("Dye replaceAColor 1 1 sse2", "")
{
DyePalette palette("#00ff0010,00001120", 8);
uint32_t data[1];
@@ -1951,7 +1951,7 @@ TEST_CASE("Dye replaceAColor 1 1 sse2")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceAColor 1 2 sse2")
+TEST_CASE("Dye replaceAColor 1 2 sse2", "")
{
DyePalette palette("#02ff0120,040311ff", 8);
uint32_t data[1];
@@ -1960,7 +1960,7 @@ TEST_CASE("Dye replaceAColor 1 2 sse2")
REQUIRE(data[0] == buildHex(0x04, 0x03, 0x11, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 3 sse2")
+TEST_CASE("Dye replaceAColor 1 3 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[1];
@@ -1969,7 +1969,7 @@ TEST_CASE("Dye replaceAColor 1 3 sse2")
REQUIRE(data[0] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 2 1 sse2")
+TEST_CASE("Dye replaceAColor 2 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[2];
@@ -1980,7 +1980,7 @@ TEST_CASE("Dye replaceAColor 2 1 sse2")
REQUIRE(data[1] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 3 1 sse2")
+TEST_CASE("Dye replaceAColor 3 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[3];
@@ -1993,7 +1993,7 @@ TEST_CASE("Dye replaceAColor 3 1 sse2")
REQUIRE(data[2] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 4 1 sse2")
+TEST_CASE("Dye replaceAColor 4 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[4];
@@ -2008,7 +2008,7 @@ TEST_CASE("Dye replaceAColor 4 1 sse2")
REQUIRE(data[3] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 5 1 sse2")
+TEST_CASE("Dye replaceAColor 5 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[5];
@@ -2025,7 +2025,7 @@ TEST_CASE("Dye replaceAColor 5 1 sse2")
REQUIRE(data[4] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 7 1 sse2")
+TEST_CASE("Dye replaceAColor 7 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[7];
@@ -2046,7 +2046,7 @@ TEST_CASE("Dye replaceAColor 7 1 sse2")
REQUIRE(data[6] == buildHex(0x01, 0x00, 0xee, 0x50));
}
-TEST_CASE("Dye replaceAColor 8 1 sse2")
+TEST_CASE("Dye replaceAColor 8 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -2069,7 +2069,7 @@ TEST_CASE("Dye replaceAColor 8 1 sse2")
REQUIRE(data[7] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 9 1 sse2")
+TEST_CASE("Dye replaceAColor 9 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[9];
@@ -2094,7 +2094,7 @@ TEST_CASE("Dye replaceAColor 9 1 sse2")
REQUIRE(data[8] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 10 1 sse2")
+TEST_CASE("Dye replaceAColor 10 1 sse2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[10];
@@ -2121,7 +2121,7 @@ TEST_CASE("Dye replaceAColor 10 1 sse2")
REQUIRE(data[9] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 1 avx2")
+TEST_CASE("Dye replaceAColor 1 1 avx2", "")
{
DyePalette palette("#00ff0010,00001120", 8);
uint32_t data[1];
@@ -2130,7 +2130,7 @@ TEST_CASE("Dye replaceAColor 1 1 avx2")
REQUIRE(data[0] == buildHex(0x10, 0x03, 0x02, 0x01));
}
-TEST_CASE("Dye replaceAColor 1 2 avx2")
+TEST_CASE("Dye replaceAColor 1 2 avx2", "")
{
DyePalette palette("#02ff0120,040311ff", 8);
uint32_t data[1];
@@ -2139,7 +2139,7 @@ TEST_CASE("Dye replaceAColor 1 2 avx2")
REQUIRE(data[0] == buildHex(0x04, 0x03, 0x11, 0xff));
}
-TEST_CASE("Dye replaceAColor 1 3 avx2")
+TEST_CASE("Dye replaceAColor 1 3 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[1];
@@ -2148,7 +2148,7 @@ TEST_CASE("Dye replaceAColor 1 3 avx2")
REQUIRE(data[0] == buildHex(0x10, 0x20, 0x30, 0xff));
}
-TEST_CASE("Dye replaceAColor 2 1 avx2")
+TEST_CASE("Dye replaceAColor 2 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[2];
@@ -2159,7 +2159,7 @@ TEST_CASE("Dye replaceAColor 2 1 avx2")
REQUIRE(data[1] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 3 1 avx2")
+TEST_CASE("Dye replaceAColor 3 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[3];
@@ -2172,7 +2172,7 @@ TEST_CASE("Dye replaceAColor 3 1 avx2")
REQUIRE(data[2] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 4 1 avx2")
+TEST_CASE("Dye replaceAColor 4 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[4];
@@ -2187,7 +2187,7 @@ TEST_CASE("Dye replaceAColor 4 1 avx2")
REQUIRE(data[3] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 5 1 avx2")
+TEST_CASE("Dye replaceAColor 5 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[5];
@@ -2204,7 +2204,7 @@ TEST_CASE("Dye replaceAColor 5 1 avx2")
REQUIRE(data[4] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 7 1 avx2")
+TEST_CASE("Dye replaceAColor 7 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[7];
@@ -2225,7 +2225,7 @@ TEST_CASE("Dye replaceAColor 7 1 avx2")
REQUIRE(data[6] == buildHex(0x01, 0x00, 0xee, 0x50));
}
-TEST_CASE("Dye replaceAColor 8 1 avx2")
+TEST_CASE("Dye replaceAColor 8 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[8];
@@ -2248,7 +2248,7 @@ TEST_CASE("Dye replaceAColor 8 1 avx2")
REQUIRE(data[7] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 9 1 avx2")
+TEST_CASE("Dye replaceAColor 9 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[9];
@@ -2273,7 +2273,7 @@ TEST_CASE("Dye replaceAColor 9 1 avx2")
REQUIRE(data[8] == buildHex(0x20, 0x00, 0x00, 0x00));
}
-TEST_CASE("Dye replaceAColor 10 1 avx2")
+TEST_CASE("Dye replaceAColor 10 1 avx2", "")
{
DyePalette palette("#40404040,20000000,0100ee40,102030ff", 8);
uint32_t data[10];
@@ -2301,7 +2301,7 @@ TEST_CASE("Dye replaceAColor 10 1 avx2")
}
-TEST_CASE("Dye normalDye 1")
+TEST_CASE("Dye normalDye 1", "")
{
Dye dye("R:#203040,506070");
uint32_t data[1];
@@ -2310,7 +2310,7 @@ TEST_CASE("Dye normalDye 1")
REQUIRE(data[0] == buildHex(0x14, 0x1e, 0x28, 0x55));
}
-TEST_CASE("Dye normalDye 2")
+TEST_CASE("Dye normalDye 2", "")
{
Dye dye("G:#203040,506070");
uint32_t data[1];
@@ -2321,7 +2321,7 @@ TEST_CASE("Dye normalDye 2")
#ifdef USE_OPENGL
-TEST_CASE("Dye normalOGLDye 1")
+TEST_CASE("Dye normalOGLDye 1", "")
{
Dye dye("R:#203040,506070");
uint32_t data[1];
@@ -2361,7 +2361,7 @@ static void dyeCheck(const std::string &dyeString,
image1->decRef();
}
-TEST_CASE("Dye real dye")
+TEST_CASE("Dye real dye", "")
{
setEnv("SDL_VIDEODRIVER", "dummy");
@@ -2411,7 +2411,7 @@ TEST_CASE("Dye real dye")
// VirtFs::deinit();
}
-TEST_CASE("Dye leak test2")
+TEST_CASE("Dye leak test2", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
diff --git a/src/resources/dye/dyepalette_unittest.cc b/src/resources/dye/dyepalette_unittest.cc
index afa3d8878..0eee7b029 100644
--- a/src/resources/dye/dyepalette_unittest.cc
+++ b/src/resources/dye/dyepalette_unittest.cc
@@ -52,7 +52,7 @@
#include "debug.h"
-TEST_CASE("DyePalette leak test1")
+TEST_CASE("DyePalette leak test1", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
@@ -61,7 +61,7 @@ TEST_CASE("DyePalette leak test1")
delete2(logger);
}
-TEST_CASE("DyePalette tests")
+TEST_CASE("DyePalette tests", "")
{
setEnv("SDL_VIDEODRIVER", "dummy");
@@ -408,7 +408,7 @@ TEST_CASE("DyePalette tests")
// VirtFs::deinit();
}
-TEST_CASE("DyePalette leak test2")
+TEST_CASE("DyePalette leak test2", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
diff --git a/src/resources/map/maplayer_unittest.cc b/src/resources/map/maplayer_unittest.cc
index 692a4738f..cdd948670 100644
--- a/src/resources/map/maplayer_unittest.cc
+++ b/src/resources/map/maplayer_unittest.cc
@@ -32,6 +32,7 @@
#include "gui/theme.h"
#include "utils/delete2.h"
+#include "utils/env.h"
#include "render/mockgraphics.h"
@@ -45,7 +46,7 @@
#include "debug.h"
-TEST_CASE("MapLayer getTileDrawWidth")
+TEST_CASE("MapLayer getTileDrawWidth", "")
{
Image *const img1 = new Image(32, 32);
Image *const img2 = new Image(32, 32);
@@ -410,7 +411,7 @@ TEST_CASE("MapLayer getTileDrawWidth")
}
-TEST_CASE("MapLayer getEmptyTileDrawWidth")
+TEST_CASE("MapLayer getEmptyTileDrawWidth", "")
{
Image *const img1 = new Image(32, 32);
Image *const img2 = new Image(32, 32);
@@ -538,7 +539,7 @@ TEST_CASE("MapLayer getEmptyTileDrawWidth")
}
-TEST_CASE("MapLayer updateCache")
+TEST_CASE("MapLayer updateCache", "")
{
Image *const img1 = new Image(32, 32);
Image *const img2 = new Image(32, 32);
@@ -902,7 +903,7 @@ TEST_CASE("MapLayer updateCache")
delete img3;
}
-TEST_CASE("MapLayer updateConditionTiles")
+TEST_CASE("MapLayer updateConditionTiles", "")
{
Image *const img1 = new Image(32, 32);
Map *map = nullptr;
@@ -1095,7 +1096,7 @@ TEST_CASE("MapLayer updateConditionTiles")
delete img1;
}
-TEST_CASE("MapLayer draw")
+TEST_CASE("MapLayer draw", "")
{
Image *const img1 = new Image(32, 32);
Image *const img2 = new Image(32, 32);
@@ -1645,8 +1646,10 @@ TEST_CASE("MapLayer draw")
delete mock;
}
-TEST_CASE("MapLayer drawSpecialLayer (specialLayer)")
+TEST_CASE("MapLayer drawSpecialLayer (specialLayer)", "")
{
+ setEnv("SDL_VIDEODRIVER", "dummy");
+
logger = new Logger;
VirtFs::mountDirSilent("data", Append_false);
VirtFs::mountDirSilent("../data", Append_false);
@@ -1997,8 +2000,10 @@ TEST_CASE("MapLayer drawSpecialLayer (specialLayer)")
delete2(logger);
}
-TEST_CASE("MapLayer drawSpecialLayer (tempLayer)")
+TEST_CASE("MapLayer drawSpecialLayer (tempLayer)", "")
{
+ setEnv("SDL_VIDEODRIVER", "dummy");
+
logger = new Logger;
VirtFs::mountDirSilent("data", Append_false);
VirtFs::mountDirSilent("../data", Append_false);
@@ -2355,8 +2360,10 @@ TEST_CASE("MapLayer drawSpecialLayer (tempLayer)")
delete2(logger);
}
-TEST_CASE("MapLayer drawFringe")
+TEST_CASE("MapLayer drawFringe", "")
{
+ setEnv("SDL_VIDEODRIVER", "dummy");
+
logger = new Logger;
VirtFs::mountDirSilent("data", Append_false);
VirtFs::mountDirSilent("../data", Append_false);
diff --git a/src/resources/map/speciallayer_unittest.cc b/src/resources/map/speciallayer_unittest.cc
index fea93e801..af84d6a77 100644
--- a/src/resources/map/speciallayer_unittest.cc
+++ b/src/resources/map/speciallayer_unittest.cc
@@ -34,6 +34,7 @@
#include "gui/gui.h"
#include "utils/delete2.h"
+#include "utils/env.h"
#include "resources/sdlimagehelper.h"
@@ -43,7 +44,7 @@
#include "debug.h"
-TEST_CASE("SpecialLayer leak test1")
+TEST_CASE("SpecialLayer leak test1", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
@@ -52,8 +53,10 @@ TEST_CASE("SpecialLayer leak test1")
delete2(logger);
}
-TEST_CASE("SpecialLayer updateCache")
+TEST_CASE("SpecialLayer updateCache", "")
{
+ setEnv("SDL_VIDEODRIVER", "dummy");
+
logger = new Logger;
client = new Client;
VirtFs::mountDirSilent("data", Append_false);
@@ -278,7 +281,7 @@ TEST_CASE("SpecialLayer updateCache")
delete2(logger);
}
-TEST_CASE("SpecialLayer leak test2")
+TEST_CASE("SpecialLayer leak test2", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
diff --git a/src/resources/mstack_unittest.cc b/src/resources/mstack_unittest.cc
index 305aee15f..c45015680 100644
--- a/src/resources/mstack_unittest.cc
+++ b/src/resources/mstack_unittest.cc
@@ -26,7 +26,7 @@
#include "debug.h"
-TEST_CASE("mstack push 1")
+TEST_CASE("mstack push 1", "")
{
MStack<ClipRect> stack(10);
REQUIRE(-1 == (stack.mPointer - stack.mStack));
@@ -44,7 +44,7 @@ TEST_CASE("mstack push 1")
REQUIRE(2 == val1.yOffset);
}
-TEST_CASE("mstack push 2")
+TEST_CASE("mstack push 2", "")
{
MStack<ClipRect> stack(10);
ClipRect &val1 = stack.push();
@@ -58,7 +58,7 @@ TEST_CASE("mstack push 2")
REQUIRE(2 == stack.mStack[0].yOffset);
}
-TEST_CASE("mstack push 3")
+TEST_CASE("mstack push 3", "")
{
MStack<ClipRect> stack(10);
ClipRect &val1 = stack.push();
@@ -68,7 +68,7 @@ TEST_CASE("mstack push 3")
REQUIRE(10 == stack.mStack[0].xOffset);
}
-TEST_CASE("mstack push 4")
+TEST_CASE("mstack push 4", "")
{
MStack<ClipRect> stack(10);
ClipRect &val1 = stack.push();
@@ -93,7 +93,7 @@ TEST_CASE("mstack push 4")
REQUIRE(30 == stack.mStack[2].xOffset);
}
-TEST_CASE("mstack pop 1")
+TEST_CASE("mstack pop 1", "")
{
MStack<ClipRect> stack(10);
ClipRect &val1 = stack.push();
@@ -104,7 +104,7 @@ TEST_CASE("mstack pop 1")
REQUIRE(-1 == stack.mPointer - stack.mStack);
}
-TEST_CASE("mstack pop 2")
+TEST_CASE("mstack pop 2", "")
{
MStack<ClipRect> stack(10);
ClipRect &val1 = stack.push();
@@ -135,7 +135,7 @@ TEST_CASE("mstack pop 2")
REQUIRE(0 == stack.mStack[2].xOffset);
}
-TEST_CASE("mstack clear 1")
+TEST_CASE("mstack clear 1", "")
{
MStack<ClipRect> stack(10);
REQUIRE(-1 == stack.mPointer - stack.mStack);
@@ -150,7 +150,7 @@ TEST_CASE("mstack clear 1")
REQUIRE(0 == stack.mStack[1].xOffset);
}
-TEST_CASE("mstack getpop 1")
+TEST_CASE("mstack getpop 1", "")
{
MStack<ClipRect> stack(10);
ClipRect &val1 = stack.push();
diff --git a/src/resources/resourcemanager/resourcemanager_unittest.cc b/src/resources/resourcemanager/resourcemanager_unittest.cc
index 527274ae9..0908ae78d 100644
--- a/src/resources/resourcemanager/resourcemanager_unittest.cc
+++ b/src/resources/resourcemanager/resourcemanager_unittest.cc
@@ -88,7 +88,7 @@ namespace
} // namespace
-TEST_CASE("resourcemanager leak test1")
+TEST_CASE("resourcemanager leak test1", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
@@ -691,7 +691,7 @@ TEST_CASE("resourcemanager", "resourcemanager")
// VirtFs::deinit();
}
-TEST_CASE("resourcemanager leak test2")
+TEST_CASE("resourcemanager leak test2", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
diff --git a/src/resources/sprite/animatedsprite_unittest.cc b/src/resources/sprite/animatedsprite_unittest.cc
index dabadd21b..23d2b8333 100644
--- a/src/resources/sprite/animatedsprite_unittest.cc
+++ b/src/resources/sprite/animatedsprite_unittest.cc
@@ -55,7 +55,7 @@
#include "debug.h"
-TEST_CASE("AnimatedSprite leak test1")
+TEST_CASE("AnimatedSprite leak test1", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);
@@ -206,7 +206,7 @@ TEST_CASE("AnimatedSprite tests", "animatedsprite")
// VirtFs::deinit();
}
-TEST_CASE("AnimatedSprite leak test2")
+TEST_CASE("AnimatedSprite leak test2", "")
{
logger = new Logger();
REQUIRE(gui == nullptr);