summaryrefslogtreecommitdiff
path: root/tests/csgtexttest.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-05 16:05:30 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-05 16:05:30 (GMT)
commit3cda438624e7217030fe77079f556f26de70202f (patch)
tree8b03c8fa5f6431395ad79f0b35b5f05c44daaedc /tests/csgtexttest.cc
parent5466efe7ef89bb2e9925f8fccd6c752e3475bd93 (diff)
refactored away duplicate code
Diffstat (limited to 'tests/csgtexttest.cc')
-rw-r--r--tests/csgtexttest.cc16
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/csgtexttest.cc b/tests/csgtexttest.cc
index fe94497..4398083 100644
--- a/tests/csgtexttest.cc
+++ b/tests/csgtexttest.cc
@@ -99,21 +99,7 @@ int main(int argc, char **argv)
}
Context root_ctx;
- root_ctx.functions_p = &builtin_functions;
- root_ctx.modules_p = &builtin_modules;
- root_ctx.set_variable("$fn", Value(0.0));
- root_ctx.set_variable("$fs", Value(1.0));
- root_ctx.set_variable("$fa", Value(12.0));
- root_ctx.set_variable("$t", Value(0.0));
-
- Value zero3;
- zero3.type = Value::VECTOR;
- zero3.append(new Value(0.0));
- zero3.append(new Value(0.0));
- zero3.append(new Value(0.0));
- root_ctx.set_variable("$vpt", zero3);
- root_ctx.set_variable("$vpr", zero3);
-
+ register_builtin(root_ctx);
AbstractModule *root_module;
ModuleInstantiation root_inst;
contact: Jan Huwald // Impressum