Skip to content

Commit

Permalink
Fix API tests
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Leprince <[email protected]>
  • Loading branch information
pleprince committed Mar 13, 2024
1 parent ccac098 commit 2341fb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/OpenEXRTest/testCompressionApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ testCompressionApi (const string& tempDir)
cout << "Testing compression API functions." << endl;

// update this if you add a new compressor.
string codecList = "none/rle/zips/zip/piz/pxr24/b44/b44a/dwaa/dwab";
string codecList = "none/rle/zips/zip/piz/pxr24/b44/b44a/dwaa/dwab/zstd";

int numMethods = static_cast<int> (NUM_COMPRESSION_METHODS);
// update this if you add a new compressor.
assert (numMethods == 10);
assert (numMethods == 11);

for (int i = 0; i < numMethods; i++)
{
Expand Down Expand Up @@ -64,6 +64,7 @@ testCompressionApi (const string& tempDir)
case ZIPS_COMPRESSION:
case ZIP_COMPRESSION:
case PIZ_COMPRESSION:
case ZSTD_COMPRESSION:
assert (isLossyCompression (c) == false);
break;

Expand All @@ -76,6 +77,7 @@ testCompressionApi (const string& tempDir)
case NO_COMPRESSION:
case RLE_COMPRESSION:
case ZIPS_COMPRESSION:
case ZSTD_COMPRESSION:
assert (isValidDeepCompression (c) == true);
break;

Expand Down

0 comments on commit 2341fb4

Please sign in to comment.