diff options
| author | Liam Mitchell <[email protected]> | 2026-03-09 19:06:36 -0700 |
|---|---|---|
| committer | Liam Mitchell <[email protected]> | 2026-03-09 19:06:36 -0700 |
| commit | d1abc50ee9d4fb72efc646e17decafea741caa34 (patch) | |
| tree | e4288e00f2f7ca0391b83d986efcb69d3ba66a83 /thirdparty/ryml/test/test_preprocess.cpp | |
| parent | Allow requests with invalid content-types unless specified in command line or... (diff) | |
| parent | updated chunk–block analyser (#818) (diff) | |
| download | zen-d1abc50ee9d4fb72efc646e17decafea741caa34.tar.xz zen-d1abc50ee9d4fb72efc646e17decafea741caa34.zip | |
Merge branch 'main' into lm/restrict-content-type
Diffstat (limited to 'thirdparty/ryml/test/test_preprocess.cpp')
| -rw-r--r-- | thirdparty/ryml/test/test_preprocess.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
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 <c4/yml/std/string.hpp> -#include <c4/yml/preprocess.hpp> -#endif -#include "./test_case.hpp" -#include <gtest/gtest.h> - -namespace c4 { -namespace yml { - -//----------------------------------------------------------------------------- -//----------------------------------------------------------------------------- -//----------------------------------------------------------------------------- - -TEST(preprocess, rxmap_basic) -{ - #define _test(val, expected) \ - EXPECT_EQ(preprocess_rxmap<std::string>(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 |