diff options
| author | Stefan Boberg <[email protected]> | 2026-02-23 11:19:52 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-02-23 11:19:52 +0100 |
| commit | 9aac0fd369b87e965fb34b5168646387de7ea1cd (patch) | |
| tree | 367a820685a829adbab31cd1374b1af2cece4b7e /thirdparty/ryml/test/test_nested_seqx2.cpp | |
| parent | changed command names and descriptions to use class members instead of string... (diff) | |
| download | zen-9aac0fd369b87e965fb34b5168646387de7ea1cd.tar.xz zen-9aac0fd369b87e965fb34b5168646387de7ea1cd.zip | |
implement yaml generation (#774)
this implements a yaml generation strategy similar to the JSON generation where we just build a string instead of building a ryml tree.
This also removes the dependency on ryml for reduced binary/build times.
Diffstat (limited to 'thirdparty/ryml/test/test_nested_seqx2.cpp')
| -rw-r--r-- | thirdparty/ryml/test/test_nested_seqx2.cpp | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/thirdparty/ryml/test/test_nested_seqx2.cpp b/thirdparty/ryml/test/test_nested_seqx2.cpp deleted file mode 100644 index 1361ae0ab..000000000 --- a/thirdparty/ryml/test/test_nested_seqx2.cpp +++ /dev/null @@ -1,133 +0,0 @@ -#include "./test_group.hpp" - -namespace c4 { -namespace yml { - -CASE_GROUP(NESTED_SEQX2) -{ - -ADD_CASE_TO_GROUP("nested seq x2, empty, oneline", -R"([[], [], []])", - L{SEQ, SEQ, SEQ} -); - -ADD_CASE_TO_GROUP("nested seq x2, explicit, same line", -R"([[00, 01, 02], [10, 11, 12], [20, 21, 22]])", - L{ - N{L{N{"00"}, N{"01"}, N{"02"}}}, - N{L{N{"10"}, N{"11"}, N{"12"}}}, - N{L{N{"20"}, N{"21"}, N{"22"}}}, - } -); - -ADD_CASE_TO_GROUP("nested seq x2, explicit first+last level, same line, no spaces", -R"([[00,01,02],[10,11,12],[20,21,22]])", - L{ - N{L{N{"00"}, N{"01"}, N{"02"}}}, - N{L{N{"10"}, N{"11"}, N{"12"}}}, - N{L{N{"20"}, N{"21"}, N{"22"}}}, - } -); - -ADD_CASE_TO_GROUP("nested seq x2, explicit", -R"([ -[00, 01, 02], -[10, 11, 12], -[20, 21, 22], -])", - L{ - N{L{N{"00"}, N{"01"}, N{"02"}}}, - N{L{N{"10"}, N{"11"}, N{"12"}}}, - N{L{N{"20"}, N{"21"}, N{"22"}}}, - } -); - -ADD_CASE_TO_GROUP("nested seq x2", -R"( -- - 00 - - 01 - - 02 -- - 10 - - 11 - - 12 -- - 20 - - 21 - - 22 -)", - L{ - N{L{N{"00"}, N{"01"}, N{"02"}}}, - N{L{N{"10"}, N{"11"}, N{"12"}}}, - N{L{N{"20"}, N{"21"}, N{"22"}}}, - } -); - -ADD_CASE_TO_GROUP("nested seq x2, next line", -R"( -- - - 00 - - 01 - - 02 -- - - 10 - - 11 - - 12 -- - - 20 - - 21 - - 22 -)", - L{ - N{L{N{"00"}, N{"01"}, N{"02"}}}, - N{L{N{"10"}, N{"11"}, N{"12"}}}, - N{L{N{"20"}, N{"21"}, N{"22"}}}, - } -); - -ADD_CASE_TO_GROUP("nested seq x2, all next line", -R"( -- - - - 00 - - - 01 - - - 02 -- - - - 10 - - - 11 - - - 12 -- - - - 20 - - - 21 - - - 22 -)", - L{ - N{L{N{"00"}, N{"01"}, N{"02"}}}, - N{L{N{"10"}, N{"11"}, N{"12"}}}, - N{L{N{"20"}, N{"21"}, N{"22"}}}, - } -); - -ADD_CASE_TO_GROUP("nested seq x2, implicit first, explicit last level", -R"( -- [00, 01, 02] -- [10, 11, 12] -- [20, 21, 22] -)", - L{ - N{L{N{"00"}, N{"01"}, N{"02"}}}, - N{L{N{"10"}, N{"11"}, N{"12"}}}, - N{L{N{"20"}, N{"21"}, N{"22"}}}, - } -); -} - - -} // namespace yml -} // namespace c4 |