VOXELFORMAT: relax color matching threshold for some tests

master
Martin Gerhardy 2022-05-21 14:08:34 +02:00
parent 7dc863af57
commit aab26f30dd
2 changed files with 8 additions and 2 deletions

View File

@ -91,6 +91,12 @@ TEST_F(ConvertTest, testSproxelToQb) {
testLoadSaveAndLoad("rgb.csv", src, "test.qb", target, true, true);
}
TEST_F(ConvertTest, testQbToQb) {
QBFormat src;
QBFormat target;
testLoadSaveAndLoad("chr_knight.qb", src, "chr_knight2.qb", target, true, false);
}
TEST_F(ConvertTest, testQbToVXM) {
QBFormat src;
VXMFormat target;

View File

@ -59,7 +59,7 @@ TEST_F(VoxFormatTest, testLoadGlasses) {
for (int i = 0; i < lengthof(volumes); ++i) {
const voxel::RawVolume &v1 = *volumes[i].get();
const voxel::RawVolume &v2 = *sceneGraph[i]->volume();
volumeComparator(v1, voxel::getPalette(), v2, sceneGraph[i]->palette(), true, true);
volumeComparator(v1, voxel::getPalette(), v2, sceneGraph[i]->palette(), true, true, 0.004f);
}
}
@ -96,7 +96,7 @@ TEST_F(VoxFormatTest, testLoad8OnTop) {
for (int i = 0; i < lengthof(volumes); ++i) {
const voxel::RawVolume &v1 = *volumes[i].get();
const voxel::RawVolume &v2 = *sceneGraph[i]->volume();
volumeComparator(v1, voxel::getPalette(), v2, sceneGraph[i]->palette(), true, true);
volumeComparator(v1, voxel::getPalette(), v2, sceneGraph[i]->palette(), true, true, 0.02f);
}
}