summaryrefslogtreecommitdiffhomepage
path: root/test/option.test.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-24 12:41:59 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-24 12:41:59 +0100
commite476868bdc27ef0e36fc2485606634e7cf2ee00d (patch)
tree462942c7e71c4c27cff6c32240f10a1726960a87 /test/option.test.cpp
parent39a1ddf997daf1e4879b2e0cb2bd30ad6db2204c (diff)
feat: new alias for `allocator_op.hpp` pool types.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/option.test.cpp')
-rw-r--r--test/option.test.cpp42
1 files changed, 24 insertions, 18 deletions
diff --git a/test/option.test.cpp b/test/option.test.cpp
index fdc8d37..3cc336f 100644
--- a/test/option.test.cpp
+++ b/test/option.test.cpp
@@ -8,26 +8,32 @@
#define BOOST_TEST_MODULE option
#include <boost/test/included/unit_test.hpp>
-BOOST_AUTO_TEST_CASE( option_should_fail )
+BOOST_AUTO_TEST_CASE(option_should_fail)
{
- bool ret = false;
- try {
- ocl::option opt(ocl::eval_false());
- opt.expect("");
- } catch (...) {
- ret = true;
- }
- BOOST_TEST( ret == true );
+ bool ret = false;
+ try
+ {
+ ocl::option opt(ocl::eval_false());
+ opt.expect("");
+ }
+ catch (...)
+ {
+ ret = true;
+ }
+ BOOST_TEST(ret == true);
}
-BOOST_AUTO_TEST_CASE( option_should_succeed )
+BOOST_AUTO_TEST_CASE(option_should_succeed)
{
- bool ret = true;
- try {
- ocl::option opt(ocl::eval_true());
- opt.expect("");
- } catch (...) {
- ret = false;
- }
- BOOST_TEST( ret == true );
+ bool ret = true;
+ try
+ {
+ ocl::option opt(ocl::eval_true());
+ opt.expect("");
+ }
+ catch (...)
+ {
+ ret = false;
+ }
+ BOOST_TEST(ret == true);
}