diff options
Diffstat (limited to 'libadhocutil/unittests/testOptionals.cpp')
-rw-r--r-- | libadhocutil/unittests/testOptionals.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libadhocutil/unittests/testOptionals.cpp b/libadhocutil/unittests/testOptionals.cpp index f6dc371..600c972 100644 --- a/libadhocutil/unittests/testOptionals.cpp +++ b/libadhocutil/unittests/testOptionals.cpp @@ -1,14 +1,14 @@ #define BOOST_TEST_MODULE Buffer #include <boost/test/unit_test.hpp> -#include <optionalUtils.h> -#include <optional> #include <Ice/Exception.h> #include <Ice/Optional.h> +#include <optional> +#include <optionalUtils.h> using namespace AdHoc; -BOOST_AUTO_TEST_CASE ( general ) +BOOST_AUTO_TEST_CASE(general) { std::optional<int> x; std::optional<double> y = 2.3; @@ -26,9 +26,9 @@ BOOST_AUTO_TEST_CASE ( general ) BOOST_REQUIRE_EQUAL(2.3, *a1); auto a2 = x / 10; BOOST_REQUIRE_EQUAL(10, a2); - auto a3 = ix / 11; + auto a3 = ix / 11; BOOST_REQUIRE_EQUAL(11, a3); - auto a4 = iy / 11; + auto a4 = iy / 11; BOOST_REQUIRE_EQUAL(4, a4); auto s1 = p / s / r; @@ -43,4 +43,3 @@ BOOST_AUTO_TEST_CASE ( general ) delete q; } - |