mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include "util/MockAssert.hpp"
|
||||
#include "util/newconfig/Array.hpp"
|
||||
#include "util/newconfig/ConfigConstraints.hpp"
|
||||
#include "util/newconfig/ConfigValue.hpp"
|
||||
@@ -38,9 +39,11 @@ TEST(ArrayTest, prefix)
|
||||
EXPECT_EQ(Array::prefix("foo.bar.[].baz"), "foo.bar.[]");
|
||||
}
|
||||
|
||||
TEST(ArrayDeathTest, prefix)
|
||||
struct ArrayAssertTest : common::util::WithMockAssert {};
|
||||
|
||||
TEST_F(ArrayAssertTest, prefix)
|
||||
{
|
||||
EXPECT_DEATH(Array::prefix("foo.bar"), ".*");
|
||||
EXPECT_CLIO_ASSERT_FAIL(Array::prefix("foo.bar"));
|
||||
}
|
||||
|
||||
TEST(ArrayTest, addSingleValue)
|
||||
|
||||
Reference in New Issue
Block a user