Commit Graph

268 Commits (a49c32bee056f318b0910934f7b8e433c7aef189)

Author SHA1 Message Date
Don Bright d6a57b8968 fix bug in 2d resize code 2013-09-12 19:44:07 -05:00
Don Bright c87e9f8d6e remove extraneous files, add rands working test 2013-09-12 00:47:03 -05:00
Don Bright 6af6c311a1 cmdline throwntogether, integrate w chrysn tests, update resize tests 2013-09-12 00:17:17 -05:00
Marius Kintel a7396cc36f Fixes two problems related to : lookup was dynamic rather than lexical, assignment was done after all local variables causing it not to be copyable 2013-08-21 01:40:21 -04:00
Marius Kintel c3e7d4bf03 dumptest now supports the root modifier - updated test results 2013-07-02 09:33:24 +02:00
Marius Kintel 6082dafad8 Re-enable tests which previously cause floating point comparison issues 2013-07-02 00:16:07 -04:00
chrysn ad1a11a28e Merge branch 'master' into no-testprograms
Conflicts:
	tests/CMakeLists.txt
	tests/regression/csgtermtest/assign-expected.term
	tests/regression/csgtermtest/child-expected.term
	tests/regression/csgtermtest/circle-expected.term
	tests/regression/csgtermtest/color-expected.term
	tests/regression/csgtermtest/cube-expected.term
	tests/regression/csgtermtest/cylinder-expected.term
	tests/regression/csgtermtest/difference-expected.term
	tests/regression/csgtermtest/dxf_linear_extrude-expected.term
	tests/regression/csgtermtest/dxf_rotate_extrude-expected.term
	tests/regression/csgtermtest/echo-expected.term
	tests/regression/csgtermtest/for-expected.term
	tests/regression/csgtermtest/glide-expected.term
	tests/regression/csgtermtest/group-expected.term
	tests/regression/csgtermtest/hull-expected.term
	tests/regression/csgtermtest/if-expected.term
	tests/regression/csgtermtest/import-expected.term
	tests/regression/csgtermtest/import_dxf-expected.term
	tests/regression/csgtermtest/import_off-expected.term
	tests/regression/csgtermtest/import_stl-expected.term
	tests/regression/csgtermtest/intersection-expected.term
	tests/regression/csgtermtest/intersection_for-expected.term
	tests/regression/csgtermtest/linear_extrude-expected.term
	tests/regression/csgtermtest/minkowski-expected.term
	tests/regression/csgtermtest/mirror-expected.term
	tests/regression/csgtermtest/multmatrix-expected.term
	tests/regression/csgtermtest/polygon-expected.term
	tests/regression/csgtermtest/polyhedron-expected.term
	tests/regression/csgtermtest/projection-expected.term
	tests/regression/csgtermtest/render-expected.term
	tests/regression/csgtermtest/rotate-expected.term
	tests/regression/csgtermtest/rotate_extrude-expected.term
	tests/regression/csgtermtest/scale-expected.term
	tests/regression/csgtermtest/sphere-expected.term
	tests/regression/csgtermtest/square-expected.term
	tests/regression/csgtermtest/subdiv-expected.term
	tests/regression/csgtermtest/surface-expected.term
	tests/regression/csgtermtest/translate-expected.term
	tests/regression/csgtermtest/union-expected.term
	tests/regression/dumptest/circle-expected.csg
	tests/regression/dumptest/color-expected.csg
	tests/regression/dumptest/cube-expected.csg
	tests/regression/dumptest/cylinder-expected.csg
	tests/regression/dumptest/difference-expected.csg
	tests/regression/dumptest/dxf_linear_extrude-expected.csg
	tests/regression/dumptest/dxf_rotate_extrude-expected.csg
	tests/regression/dumptest/glide-expected.csg
	tests/regression/dumptest/import-expected.csg
	tests/regression/dumptest/import_dxf-expected.csg
	tests/regression/dumptest/import_off-expected.csg
	tests/regression/dumptest/import_stl-expected.csg
	tests/regression/dumptest/intersection-expected.csg
	tests/regression/dumptest/intersection_for-expected.csg
	tests/regression/dumptest/linear_extrude-expected.csg
	tests/regression/dumptest/minkowski-expected.csg
	tests/regression/dumptest/mirror-expected.csg
	tests/regression/dumptest/multmatrix-expected.csg
	tests/regression/dumptest/polygon-expected.csg
	tests/regression/dumptest/polyhedron-expected.csg
	tests/regression/dumptest/projection-expected.csg
	tests/regression/dumptest/render-expected.csg
	tests/regression/dumptest/rotate-expected.csg
	tests/regression/dumptest/rotate_extrude-expected.csg
	tests/regression/dumptest/scale-expected.csg
	tests/regression/dumptest/sphere-expected.csg
	tests/regression/dumptest/square-expected.csg
	tests/regression/dumptest/subdiv-expected.csg
	tests/regression/dumptest/surface-expected.csg
	tests/regression/dumptest/translate-expected.csg
2013-06-26 18:06:00 +02:00
Marius Kintel d9b3f7b52b Test case for #399 2013-06-25 23:17:51 -04:00
chrysn 3460564880 renamed csgtermtest to .term 2013-06-25 13:41:49 +02:00
chrysn 2006824c24 drop moduledumptest, use `openscad -o ${NAME}.ast`
src/openscad.cc code was copy/pasted from .csg section; some refactoring
might make things nicer, but i didn't dare change too much for lack of
language knowledge
2013-06-25 13:41:49 +02:00
chrysn 770cb09f5f trim precision from the echo tests
as it was done with dumptest before
2013-06-25 13:41:48 +02:00
chrysn 84857ac157 modify root modifier example now that the test program respects the root modifier
as the dumptests are now run from a full openscad, the root modifier is
respected by the test program too; reflectin that in the unit test
2013-06-25 13:41:48 +02:00
chrysn 850058eb69 trim precision in dumptest regressions
in order for them to work against openscad's .csg output, the number of
decimal places was reduced.
2013-06-25 13:41:48 +02:00
chrysn 00e29e9099 changed group headers to empty group headers
this became necessary because the batch editing in the last commit
didn't respect that an empty group is not group() { } but group();
2013-06-25 13:41:47 +02:00
chrysn 400248d566 renamed dumptest files to .csg and added group headers 2013-06-25 13:41:47 +02:00
Marius Kintel a3cd019494 Removed a bunch of less useful tests 2013-06-23 01:56:04 -04:00
Marius Kintel f89b299357 Updated test results to match recent change 2013-06-15 13:28:32 -04:00
Marius Kintel 3f936099fa Clamp linear_extrude height to 0. Fixes #405 2013-06-15 12:48:09 -04:00
Marius Kintel 026f23ee6d updated testcases for recently updated tests 2013-06-14 14:25:54 -04:00
Marius Kintel b45a93aad2 Related to #399, reverted assignment evaluation order to be the same as in 2013.01 as the new implementation broke existing scripts. Added some experimental commented out code, which can be used as reference in the future 2013-06-13 10:29:39 -04:00
Marius Kintel 80d81d9b76 Added scope and reassignment tests 2013-06-13 01:26:36 -04:00
Marius Kintel f2f019f57e clamp to 3. Fixes #395 2013-06-08 02:12:06 -04:00
Marius Kintel 41f352a788 Added moduledumptest. Fixes #384 2013-06-01 16:11:44 -04:00
Marius Kintel 84088dee58 Improved if-else test to include a multiple-children test 2013-06-01 16:11:15 -04:00
Marius Kintel f110092852 Added resize() and improved if test 2013-06-01 16:09:05 -04:00
Marius Kintel 837b574351 Added missing test result 2013-05-26 17:15:02 -04:00
Marius Kintel e607447761 Added expected files for example024 2013-05-25 11:48:04 -07:00
Marius Kintel 85d465617a Updated tests as part of #304 2013-05-25 14:01:45 -04:00
Marius Kintel 794b80ffcf Modified tests for #304 2013-05-25 13:11:09 -04:00
Marius Kintel 71ab237aad Added tests for linear extrude with scale. Should mostly fix #273 2013-05-21 21:26:51 -04:00
Marius Kintel beda4a7952 Updated expected test: ERROR label 2013-05-14 02:55:53 +02:00
Marius Kintel 8c532d5252 Updated test cases to reflect scale argument to linear_extrude (#273) 2013-05-11 12:56:19 -04:00
Marius Kintel 3780677def Added testcase for #322 2013-05-09 17:28:05 +02:00
Marius Kintel c5ebdb788b Added failing test for #336 2013-05-09 14:23:52 +02:00
Marius Kintel ad8ba77a15 Added failing test for #352 2013-05-09 12:16:58 +02:00
Marius Kintel 0e938364fe Search for included files first in the same location as the including module, then in the document root as a compatibility fallback. Fixes #217 2013-05-09 11:02:31 +02:00
Marius Kintel e09d1df0e1 Merge branch 'master' into local-scope 2013-05-05 01:26:09 +02:00
Marius Kintel c4cae2a29a Fixes crash if hull's children are empty objects. Fixes #345 2013-05-02 22:11:23 -04:00
Marius Kintel 886bc85eec Fixes remaining dxfdim() issue from #217 2013-04-27 00:53:41 -04:00
Marius Kintel 9b740b558d Further refactoring of scope/context mechanisms. Mostly related to the new FileContext class. Not quite there yet, but almost 2013-04-26 17:45:03 -04:00
Marius Kintel b5922d7551 Merge branch 'master' into issue116 2013-04-24 02:00:28 -04:00
Marius Kintel eb60b5f937 Tag search failures as warnings 2013-04-19 15:57:11 -04:00
Marius Kintel a37813a899 Refactored context handling into using separate Module contexts and Eval contexts. This allows for recursive module calls, and cascading children. I believe this fixes issue #116 2013-04-09 00:28:16 -04:00
Marius Kintel 3307deee93 Added test for inner module variables 2013-04-08 22:41:28 -04:00
Marius Kintel 1b8b7aa5fa I think this should fix issue #217 2013-04-05 01:30:09 -04:00
don bright eb8772539c update test results 2013-03-16 13:34:47 -05:00
don bright c46fb24bf2 update regression test results 2013-03-16 13:18:10 -05:00
don bright 035f022e0a Merge branch 'master' of github.com:openscad/openscad into resize5 2013-03-16 13:07:21 -05:00
Marius Kintel 6b8a5e266c Handle files with non-ascii filenames. Only rudimentary tested. Fixes #113 #290 2013-03-11 22:14:00 -04:00
don bright ea0bb94be9 Merge branch 'master' of github.com:openscad/openscad into resize5 2013-03-11 16:40:51 -07:00
don bright 79ce1e47d0 add new test results and updated versions of old ones 2013-03-11 17:59:02 -05:00
Marius Kintel d9c4b77942 Added test case for value reassignment issue. #289 2013-03-11 17:58:05 -04:00
Marius Kintel adb16cb7dd Expected files for recently added tests 2013-03-11 17:54:00 -04:00
don bright 33a54b52f2 test output for resize() 2013-03-09 20:36:35 -06:00
Marius Kintel b7bb0071fb Added tests which slipped through earlier. Fixes #298 2013-03-09 10:39:46 -05:00
don bright 1778047f77 for portable testing, use Value() result for doubles inside multmatrix 2013-02-16 05:45:52 -08:00
don bright e8a9df55cf test guicgalpngtest against cgalpngtest images. cleanup debugging stuff 2013-01-31 05:00:22 +01:00
don bright 8ba6a78288 add correct test result images, and minor cleanup 2013-01-31 04:14:09 +01:00
don bright 997a0afac3 Merge branch 'master' and fix bugs
Conflicts:
	src/openscad.cc
	tests/CMakeLists.txt
2013-01-31 03:58:34 +01:00
Marius Kintel c087605193 Support reading binary STLs which happen to start with the string 'solid'. Fixes #258 2013-01-28 17:58:36 -05:00
don bright 1e64dddf1e Merge branch 'master' of github.com:openscad/openscad into issue159 2013-01-27 20:42:20 -06:00
don bright 6bac08c33a add gui-cmdlind based output tests (for cgal) 2013-01-26 18:56:33 +01:00
Marius Kintel 0e4e8b64a7 Test results for updated tests for issue #221 2013-01-17 11:43:17 -05:00
don bright 5c779159c2 new test results (degenerate polygons produce output) 2013-01-08 05:06:26 +01:00
Marius Kintel bc7ff5aa8d Ignore dimension when evaluating control modules mixed with geometry children. Fixes #229 2012-12-27 17:30:13 +01:00
Marius Kintel 65fc1d6b01 Detect recursive execution of functions to avoid a stack overflow crash. Fixes #200 2012-10-09 23:32:56 -04:00
Marius Kintel 0cea83a35d Fixed weakness in parser causing modifier characters not to work in front of 'if' statements. Fixes #197 2012-10-07 15:24:08 -04:00
don bright 6a8254f849 add images for tests 2012-08-21 02:47:45 +02:00
don bright 4f7bf1819f add test for proper rounding of decimals in echo() 2012-07-26 20:49:58 -05:00
Marius Kintel 197a4e4d36 Merge branch 'master' into value 2012-06-04 11:34:27 +02:00
Marius Kintel 38cb06c3f0 Added test cases for issue #123 2012-06-04 11:22:09 +02:00
Don Bright 5b366adf8a adding new test images for 'hole' with projection-cut 2012-05-28 12:38:40 -05:00
Don Bright dd2002a816 Tidy up code. Generate proper test png images. Merge branch 'master' into caliston1.
Conflicts:
	src/PolySetCGALEvaluator.cc
2012-05-28 11:48:46 -05:00
Marius Kintel 8766b955ec Updated matrix and vector multiplication tests 2012-03-31 23:22:33 +02:00
Marius Kintel 99cec78159 Revert "expected file for updated projection-tests"
This reverts commit 3cd36f972e.
2012-03-27 23:40:55 +02:00
Marius Kintel c5703b4407 bugfix: Fix crash bug when using zero scale factors. Reported by Alan Cox 2012-02-19 13:09:02 +01:00
Andrew Plumb de1deb113f Added better example023 with test output. 2012-02-18 21:22:31 -05:00
Marius Kintel 4f8c89ecf0 Merge branch 'search_function' of https://github.com/clothbot/openscad into clothbot-search_function 2012-02-18 12:51:51 +01:00
Marius Kintel 4b54876b7a Merge branch 'master' into modulecache 2012-02-17 23:08:29 +01:00
Andrew Plumb 32a408f594 Test using search() and MCAD/fonts.scad
A more comprehensive test that exercises the search function and
MCAD/fonts.scad approach to text rendering together.
2012-02-15 00:10:36 -05:00
Andrew Plumb 505e808067 Added search function
Search for characters, strings and integers in a lookup table and
return the index (or indices) for matches.
2012-02-14 23:04:40 -05:00
Andrew Plumb 5d6a259a8b Added vector math support.
Added vector dot-product, matrix*vec, vec*matrix and matrix*matrix
support.
2012-02-14 21:22:48 -05:00
Marius Kintel 3cd36f972e expected file for updated projection-tests 2012-02-15 01:32:37 +01:00
Marius Kintel cf3102f4fb expected file for updated projection-tests 2012-02-04 02:51:00 +01:00
Marius Kintel 1ce1b88249 bugfix: Nested use and included of files inside libraries was broken. Fixes #78 2012-02-02 23:11:54 +01:00
Marius Kintel e541df8bb5 Added test case for recently fixed csg normalization bugfix 2012-01-29 19:02:19 +01:00
Marius Kintel eff1f7f8c9 Ported printutils away from Qt 2012-01-25 03:11:12 +01:00
Marius Kintel 10701f7158 Added absolute path tests to include and use tests, fixed bug using absolute paths in use and include 2012-01-14 03:25:09 +01:00
Marius Kintel ad338d3e46 Another try at fixing double-to-text conversion for testing 2012-01-09 01:44:01 +01:00
Marius Kintel d3c9654ed5 Merge branch 'inftest' of https://github.com/brad/openscad into brad-inftest 2012-01-09 00:22:38 +01:00
Brad Pitcher 28f5f7a910 added tests passing infinity to various functions 2012-01-08 11:40:04 -08:00
Marius Kintel fdce8d15fc Merge branch 'master' into boost_filesystem
Conflicts:
	boost.pri
	src/lexer.l
	tests/CMakeLists.txt
2012-01-04 23:07:32 +01:00
Marius Kintel 9f16204889 Added expected files for use-tests 2012-01-03 20:47:09 +01:00
Marius Kintel 6b5c103d57 Merge branch 'master' into color-priority 2011-12-28 18:16:17 +01:00
Marius Kintel 732803039d Slightly modified example008 to reduce z-buffer fighting in throwntogether mode 2011-12-28 18:15:47 +01:00
Marius Kintel e8b8c45bad Merge branch 'master' into color-priority 2011-12-28 18:06:32 +01:00
Marius Kintel c6004a5c27 Updated intersection-tests to avoid hard-to-compare OpenGL z-buffer fighting 2011-12-28 18:05:14 +01:00
Marius Kintel 22072c1c21 Merge branch 'master' into color-priority 2011-12-28 17:57:27 +01:00
Marius Kintel db7b829089 Updated intersection-tests to avoid hard-to-compare OpenGL z-buffer fighting 2011-12-28 17:53:57 +01:00
Marius Kintel c1c54b3314 Updated expected files due to recently introduced bounding box changes 2011-12-28 13:35:54 +01:00