File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,23 @@ TEST_CASE("test_string_allocation")
34
34
35
35
SECTION (" construct" )
36
36
{
37
- {
38
- my_json j (" String too long for short string" , alloc);
39
- }
40
- // CHECK(a_pool.allocate_count_ == a_pool.deallocate_count_);
37
+ my_json j (" String too long for short string" , alloc);
38
+ // CHECK(a_pool.allocate_count_ == a_pool.deallocate_count_);
41
39
// CHECK(a_pool.construct_count_ == a_pool.destroy_count_);
42
40
}
43
41
42
+ SECTION (" emplace_back" )
43
+ {
44
+ my_json j (json_array_arg, semantic_tag::none, alloc);
45
+ j.emplace_back (" String too long for short string" , alloc);
46
+
47
+ std::cout << j << " \n " ;
48
+
49
+
50
+ // CHECK(a_pool.allocate_count_ == a_pool.deallocate_count_);
51
+ // CHECK(a_pool.construct_count_ == a_pool.destroy_count_);
52
+ }
53
+
44
54
SECTION (" parse" )
45
55
{
46
56
FreeListAllocator<char > alloc2 (true );
You can’t perform that action at this time.
0 commit comments