diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-09 17:38:52 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-09 17:38:52 (GMT) |
commit | e65ea2d6515f205526c9cba77ad0831e3b4077d1 (patch) | |
tree | 18e40bf0a2933d7507dbe6f47a787d7808c7ff31 /testdata/scad/misc/echo-tests.scad | |
parent | 5c30bcb691729b52c8456f57b42d6514a9325cf8 (diff) |
Only quote strings when using the stream operator. Fixes #35
Diffstat (limited to 'testdata/scad/misc/echo-tests.scad')
-rw-r--r-- | testdata/scad/misc/echo-tests.scad | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testdata/scad/misc/echo-tests.scad b/testdata/scad/misc/echo-tests.scad new file mode 100644 index 0000000..c42a67e --- /dev/null +++ b/testdata/scad/misc/echo-tests.scad @@ -0,0 +1,14 @@ +echo(undef); +echo("string"); +s = "stringvar"; +echo(s); +echo(a = 1, b = 2.0, true, c = false); +v = [1, "vecstr", 2.34, false]; +echo(v); +r = [1:2:10]; +echo(r); + +echo(vec = [1,2,3]); +echo(range = [0:2]); + +echo(str("string generated by str()")); |