aewallin / openvoronoi

2D voronoi diagram for point and line-segment sites using incremental topology-oriented algorithm. C++ with python bindings. Licensed under LGPL2.1.
http://www.anderswallin.net/cam/
GNU Lesser General Public License v2.1
199 stars 68 forks source link

avoid dependencies for tests #38

Open aewallin opened 6 years ago

aewallin commented 6 years ago

We now depend on a random-polygon-generator and on a font-geometry-source library for a lot of tests. This is fine for development, but maybe not ideal for deployment and automated testing.

It would be better to use the geometry-sources to generate "hardcopy" text-files with the desired test-geometry and store that in each test-directory. A good descriptive text-format is needed (YAML/INI-format or similar?)

aewallin commented 6 years ago

this example shows how to write an ini-style text file with geometry from truetypetracer https://github.com/aewallin/truetype-tracer/blob/master/py/test_3_textwriter.py

these could be included as plain-text files in tests, as source of geometry.

a similar format can be used for random polygons also.