diff options
Diffstat (limited to 'test/controls/control_info.cpp')
-rw-r--r-- | test/controls/control_info.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/controls/control_info.cpp b/test/controls/control_info.cpp index 2827473b..1176a502 100644 --- a/test/controls/control_info.cpp +++ b/test/controls/control_info.cpp @@ -26,20 +26,22 @@ protected: */ ControlInfo brightness; - if (brightness.min().get<int32_t>() != 0 || - brightness.max().get<int32_t>() != 0) { + if (brightness.min().type() != ControlType::ControlTypeNone || + brightness.max().type() != ControlType::ControlTypeNone || + brightness.def().type() != ControlType::ControlTypeNone) { cout << "Invalid control range for Brightness" << endl; return TestFail; } /* * Test information retrieval from a control with a minimum and - * a maximum value. + * a maximum value, and an implicit default value. */ ControlInfo contrast(10, 200); if (contrast.min().get<int32_t>() != 10 || - contrast.max().get<int32_t>() != 200) { + contrast.max().get<int32_t>() != 200 || + !contrast.def().isNone()) { cout << "Invalid control range for Contrast" << endl; return TestFail; } |