summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-10-09 03:40:42 (GMT)
committerMarius Kintel <marius@kintel.net>2013-10-09 03:40:42 (GMT)
commit0860dfda3e497ea91a694716d54c89bfc734f2f1 (patch)
tree3c9f3395f02cf32a7381fa6a82ac5a6de59fa653 /tests
parent0cacb434fc25277af3e67c8aea2b5770cbb20ef6 (diff)
Added test case for parent_module()
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt3
-rw-r--r--tests/regression/echotest/parent_module-tests-expected.echo9
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 1523e23..7f35bb7 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -775,7 +775,8 @@ list(APPEND ECHO_FILES ${FUNCTION_FILES}
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/value-reassignment-tests2.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/variable-scope-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/lookup-tests.scad
- ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/expression-shortcircuit-tests.scad)
+ ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/expression-shortcircuit-tests.scad
+ ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/parent_module-tests.scad)
list(APPEND DUMPTEST_FILES ${FEATURES_FILES} ${EXAMPLE_FILES})
list(APPEND DUMPTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/escape-test.scad
diff --git a/tests/regression/echotest/parent_module-tests-expected.echo b/tests/regression/echotest/parent_module-tests-expected.echo
new file mode 100644
index 0000000..666b259
--- /dev/null
+++ b/tests/regression/echotest/parent_module-tests-expected.echo
@@ -0,0 +1,9 @@
+ECHO: "name: ", "test"
+ECHO: "test"
+ECHO: "name: ", "xxx"
+ECHO: "xxx"
+ECHO: "test"
+ECHO: "name: ", "yyy"
+ECHO: "yyy"
+ECHO: "xxx"
+ECHO: "test"
contact: Jan Huwald // Impressum