Skip to content

Commit

Permalink
Fix a small bug in the new C++ tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Mei Chu <[email protected]>
  • Loading branch information
meimchu committed Mar 30, 2024
1 parent d8333f6 commit 2e43676
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/cpu/transforms/FileTransform_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ OCIO_ADD_TEST(FileTransform, format_by_index)
OCIO_ADD_TEST(FileTransform, is_format_extension_supported)
{
OCIO::FormatRegistry & formatRegistry = OCIO::FormatRegistry::GetInstance();
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported("foo", false));
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported("bar", false));
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported("cdl", true));
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported(".cdl", true));
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported("3dl", true));
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported(".3dl", true));
OCIO_CHECK_EQUAL(formatRegistry.isFormatExtensionSupported("foo"), false);
OCIO_CHECK_EQUAL(formatRegistry.isFormatExtensionSupported("bar"), false);
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported("cdl"));
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported(".cdl"));
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported("3dl"));
OCIO_CHECK_ASSERT(formatRegistry.isFormatExtensionSupported(".3dl"));
}

OCIO_ADD_TEST(FileTransform, validate)
Expand Down

0 comments on commit 2e43676

Please sign in to comment.