From e72f1d5ae70b78046c27d0b7fc12ee4b69380b2a Mon Sep 17 00:00:00 2001 From: MrDmitry Date: Sun, 21 Jan 2024 03:18:37 -0500 Subject: [PATCH] Extend test cases Add tests for: - packed neighboring variables - separated neighboring variables - mixed types of neighboring variables --- test/standalone/cmakedefine/config.h.cmake | 54 +++++++++++++++++++++- test/standalone/cmakedefine/expected.h | 54 +++++++++++++++++++++- 2 files changed, 106 insertions(+), 2 deletions(-) diff --git a/test/standalone/cmakedefine/config.h.cmake b/test/standalone/cmakedefine/config.h.cmake index d6961653df..4f078970c7 100644 --- a/test/standalone/cmakedefine/config.h.cmake +++ b/test/standalone/cmakedefine/config.h.cmake @@ -49,12 +49,24 @@ // no substition // @noval@ +// no substition +// @noval@@noval@ + +// no substition +// @noval@.@noval@ + // 1 // @trueval@ // 0 // @falseval@ +// 10 +// @trueval@@falseval@ + +// 0.1 +// @falseval@.@trueval@ + // 0 // @zeroval@ @@ -64,21 +76,47 @@ // 10 // @tenval@ +// 01 +// @zeroval@@oneval@ + +// 0.10 +// @zeroval@.@tenval@ + // test // @stringval@ +// testtest +// @stringval@@stringval@ + +// test.test +// @stringval@.@stringval@ + +// test10 +// @noval@@stringval@@trueval@@zeroval@ // ${} substition -// removal +// no substition // ${noval} +// no substition +// ${noval}${noval} + +// no substition +// ${noval}.${noval} + // 1 // ${trueval} // 0 // ${falseval} +// 10 +// ${trueval}${falseval} + +// 0.1 +// ${falseval}.${trueval} + // 0 // ${zeroval} @@ -88,6 +126,20 @@ // 10 // ${tenval} +// 01 +// ${zeroval}${oneval} + +// 0.10 +// ${zeroval}.${tenval} + // test // ${stringval} +// testtest +// ${stringval}${stringval} + +// test.test +// ${stringval}.${stringval} + +// test10 +// ${noval}${stringval}${trueval}${zeroval} diff --git a/test/standalone/cmakedefine/expected.h b/test/standalone/cmakedefine/expected.h index d71f070678..580f0f11d8 100644 --- a/test/standalone/cmakedefine/expected.h +++ b/test/standalone/cmakedefine/expected.h @@ -49,12 +49,24 @@ // no substition // +// no substition +// + +// no substition +// . + // 1 // 1 // 0 // 0 +// 10 +// 10 + +// 0.1 +// 0.1 + // 0 // 0 @@ -64,21 +76,47 @@ // 10 // 10 +// 01 +// 01 + +// 0.10 +// 0.10 + // test // test +// testtest +// testtest + +// test.test +// test.test + +// test10 +// test10 // substition -// removal +// no substition // +// no substition +// + +// no substition +// . + // 1 // 1 // 0 // 0 +// 10 +// 10 + +// 0.1 +// 0.1 + // 0 // 0 @@ -88,6 +126,20 @@ // 10 // 10 +// 01 +// 01 + +// 0.10 +// 0.10 + // test // test +// testtest +// testtest + +// test.test +// test.test + +// test10 +// test10