aboutsummaryrefslogtreecommitdiff
path: root/lib/mstch/test/data/grandparent_context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mstch/test/data/grandparent_context.hpp')
-rw-r--r--lib/mstch/test/data/grandparent_context.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/mstch/test/data/grandparent_context.hpp b/lib/mstch/test/data/grandparent_context.hpp
new file mode 100644
index 0000000..a291143
--- /dev/null
+++ b/lib/mstch/test/data/grandparent_context.hpp
@@ -0,0 +1,19 @@
+const auto grandparent_context_data = mstch::map{
+ {"grand_parent_id", std::string{"grand_parent1"}},
+ {"parent_contexts", mstch::array{
+ mstch::map{
+ {"parent_id", std::string{"parent1"}},
+ {"child_contexts", mstch::array{
+ mstch::map{{"child_id", std::string{"parent1-child1"}}},
+ mstch::map{{"child_id", std::string{"parent1-child2"}}}
+ }}
+ },
+ mstch::map{
+ {"parent_id", std::string{"parent2"}},
+ {"child_contexts", mstch::array{
+ mstch::map{{"child_id", std::string{"parent2-child1"}}},
+ mstch::map{{"child_id", std::string{"parent2-child2"}}}
+ }}
+ }
+ }}
+}; \ No newline at end of file