RE: [Inkscape-devel] Polyline and polygon point specification patch submitted
![](https://secure.gravatar.com/avatar/dc940f48c5635785f32941f1fbe6b601.jpg?s=120&d=mm&r=g)
-------- Original Message -------- Subject: [Inkscape-devel] Polyline and polygon point specification patch submitted From: "Mark Nyrup Mortensen" <nightcap@...58...> Date: Fri, July 02, 2004 10:44 pm To: inkscape-devel@lists.sourceforge.net And then another question somewhat related to the patch (and probably other places in Inkscape?): Does anyone know whether the "g_ascii_strtod" function actually is capable of reading and returning numbers sufficiently large to allow for the numbers available in SVG? From what I have seen so far i would say no, but again my knowledge of C/C++ and GTK+ is fairly limited.
Ahhh.....
This is where I'd suggest getting it in the unit tests. Just find out the range that could be needed, and then set up tests for those on either side of any boundary.
Of course, we'd probably have to have some unit test framework first to make it easy. :-)
But, seriously, it is good to at least make a note of the range that it would need to support, allong with samples to exercise it.
![](https://secure.gravatar.com/avatar/8d5128b5b838ecedc34635fba7995f7f.jpg?s=120&d=mm&r=g)
On Wed, 7 Jul 2004, Jon A. Cruz wrote:
This is where I'd suggest getting it in the unit tests. Just find out the range that could be needed, and then set up tests for those on either side of any boundary.
Of course, we'd probably have to have some unit test framework first to make it easy. :-)
Early on, mental created an example unit test that people can use as a guideline for creating unit tests. Also, Ted mentioned that make dist includes invocation of the unit tests.
If a critical mass of such tests exist, it'd be irresistably tempting to set up an automated testing framework for running them daily... ;-)
Bryce
participants (2)
-
Bryce Harrington
-
Jon A. Cruz