summaryrefslogtreecommitdiffhomepage
path: root/test/option.test.cpp
diff options
context:
space:
mode:
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);
}