1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-22 07:31:26 +08:00
Files
opencv_contrib/modules/cvv/test/test_debug_flag.cpp

16 lines
371 B
C++

#include "test_precomp.hpp"
/**
* Tests whether cvv::debugMode() and cvv::setDebugFlag(bool)`
* (from /include/opencv2/debug_mode.hpp) behave correctly.
*/
TEST(DebugFlagTest, SetAndUnsetDebugMode)
{
EXPECT_EQ(cvv::debugMode(), true);
cvv::setDebugFlag(false);
EXPECT_EQ(cvv::debugMode(), false);
cvv::setDebugFlag(true);
EXPECT_EQ(cvv::debugMode(), true);
}