From 536e00e422d89176b973daf325ee10da86c0170a Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 2 Jan 2015 23:36:22 +0100 Subject: autoformat --- test/core/model/TypesystemTest.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'test/core') diff --git a/test/core/model/TypesystemTest.cpp b/test/core/model/TypesystemTest.cpp index 29ab5ec..24487e1 100644 --- a/test/core/model/TypesystemTest.cpp +++ b/test/core/model/TypesystemTest.cpp @@ -497,14 +497,18 @@ TEST(StructType, createValidated) { logger.reset(); - Rooted structType{StructType::createValidated( - mgr, "struct", nullptr, nullptr, - NodeVector{ - new Attribute{mgr, "d", stringType, "attr1default"}, - new Attribute{mgr, "b", stringType}, - new Attribute{mgr, "a", intType, 3}, - new Attribute{mgr, "a", intType}}, - logger)}; + try { + Rooted structType{StructType::createValidated( + mgr, "struct", nullptr, nullptr, + NodeVector{ + new Attribute{mgr, "d", stringType, "attr1default"}, + new Attribute{mgr, "b", stringType}, + new Attribute{mgr, "a", intType, 3}, + new Attribute{mgr, "a", intType}}, + logger)}; + } catch (LoggableException ex) { + logger.log(ex); + } ASSERT_EQ(Severity::ERROR, logger.getMaxEncounteredSeverity()); } -- cgit v1.2.3