aboutsummaryrefslogtreecommitdiff
path: root/src/test/OptionalRefTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/OptionalRefTest.cpp')
-rw-r--r--src/test/OptionalRefTest.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/test/OptionalRefTest.cpp b/src/test/OptionalRefTest.cpp
index 1c69348..83f7b23 100644
--- a/src/test/OptionalRefTest.cpp
+++ b/src/test/OptionalRefTest.cpp
@@ -18,9 +18,7 @@ TEST(OptionalRefTest, Normal) {
ref.clear();
EXPECT_FALSE(ref);
- ASSERT_THROW({
- string & value_ref = ref;
- }, runtime_error);
+ ASSERT_THROW({ string & value_ref = ref; }, runtime_error);
}
TEST(OptionalRefTest, Empty) {
@@ -28,9 +26,7 @@ TEST(OptionalRefTest, Empty) {
OptionalRef<string> ref;
EXPECT_FALSE(ref);
- ASSERT_THROW({
- string & value_ref = ref;
- }, runtime_error);
+ ASSERT_THROW({ string & value_ref = ref; }, runtime_error);
}
TEST(OptionalRefTest, Chain) {
@@ -44,4 +40,3 @@ TEST(OptionalRefTest, Chain) {
value_ref = "bar";
EXPECT_EQ(value_ref, value);
}
-