From 823c8c45e3aec97e85d4f8de7cb1c8e2ead90735 Mon Sep 17 00:00:00 2001 From: JSCHILL1 Date: Sun, 17 May 2009 09:27:33 -0500 Subject: [PATCH] Added unit tests for color conversion --- fulltests/dragonfly.svg | 22 ++++++++++++++++++++++ scour.py | 8 +++++++- svg_regex.py | 2 +- testscour.py | 37 +++++++++++++++++++++++++++++++++++++ unittests/color-formats.svg | 11 +++++++++++ unittests/path-sn.svg | 3 +++ 6 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 fulltests/dragonfly.svg create mode 100644 unittests/color-formats.svg create mode 100644 unittests/path-sn.svg diff --git a/fulltests/dragonfly.svg b/fulltests/dragonfly.svg new file mode 100644 index 0000000..1212268 --- /dev/null +++ b/fulltests/dragonfly.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + \ No newline at end of file diff --git a/scour.py b/scour.py index 3c5c179..518d1ce 100755 --- a/scour.py +++ b/scour.py @@ -44,10 +44,13 @@ # * Put id attributes first in the serialization (or make the d attribute last) # Next Up: +# + Up-revved enthought's path parser for integer coords with sci notation: +# https://svn.enthought.com/enthought/changeset/23583?format=diff&new=23583 # - prevent elements from being stripped if they are referenced in a