From 9aac0fd369b87e965fb34b5168646387de7ea1cd Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 23 Feb 2026 11:19:52 +0100 Subject: 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. --- thirdparty/ryml/test/test_preprocess.cpp | 53 -------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 thirdparty/ryml/test/test_preprocess.cpp (limited to 'thirdparty/ryml/test/test_preprocess.cpp') diff --git a/thirdparty/ryml/test/test_preprocess.cpp b/thirdparty/ryml/test/test_preprocess.cpp deleted file mode 100644 index 7f6719e5f..000000000 --- a/thirdparty/ryml/test/test_preprocess.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef RYML_SINGLE_HEADER -#include -#include -#endif -#include "./test_case.hpp" -#include - -namespace c4 { -namespace yml { - -//----------------------------------------------------------------------------- -//----------------------------------------------------------------------------- -//----------------------------------------------------------------------------- - -TEST(preprocess, rxmap_basic) -{ - #define _test(val, expected) \ - EXPECT_EQ(preprocess_rxmap(val), expected) - - _test("{}", "{}"); - _test("a", "{a: 1}"); - _test("{a}", "{a: 1}"); - _test("a, b, c", "{a: 1, b: 1, c: 1}"); - _test("a,b,c", "{a,b,c: 1}"); - _test("a a a a, b, c", "{a a a a: 1, b: 1, c: 1}"); - _test(",", "{,}"); - - _test("a: [b, c, d]", "{a: [b, c, d]}"); - _test("a:b: [b, c, d]", "{a:b: [b, c, d]}"); - _test("a,b: [b, c, d]", "{a,b: [b, c, d]}"); - _test("a: {b, c, d}", "{a: {b, c, d}}"); - _test("a: {b: {f, g}, c: {h, i}, d: {j, k}}", - "{a: {b: {f, g}, c: {h, i}, d: {j, k}}}"); - _test("a: {b: {f g}, c: {f g}, d: {j, k}}", - "{a: {b: {f g}, c: {f g}, d: {j, k}}}"); - - #undef _test -} - - - -// The other test executables are written to contain the declarative-style -// YmlTestCases. This executable does not have any but the build setup -// assumes it does, and links with the test lib, which requires an existing -// get_case() function. So this is here to act as placeholder until (if?) -// proper test cases are added here. -Case const* get_case(csubstr) -{ - return nullptr; -} - -} // namespace yml -} // namespace c4 -- cgit v1.2.3