commit e72f1d5ae70b78046c27d0b7fc12ee4b69380b2a (tree)
parent 2dfec13ef08e0b47f0d80d599fb8552438e9e37a
Author: MrDmitry <aidenhaledev@gmail.com>
Date: Sun, 21 Jan 2024 03:18:37 -0500
Extend test cases
Add tests for:
- packed neighboring variables
- separated neighboring variables
- mixed types of neighboring variables
Diffstat:
2 files changed, 106 insertions(+), 2 deletions(-)
diff --git 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
@@ -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