Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_curve_svg/svg_util_test.py')
-rwxr-xr-xio_curve_svg/svg_util_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/io_curve_svg/svg_util_test.py b/io_curve_svg/svg_util_test.py
index b3ecda83..031c0c17 100755
--- a/io_curve_svg/svg_util_test.py
+++ b/io_curve_svg/svg_util_test.py
@@ -66,6 +66,12 @@ class ParseArrayOfFloatsTest(unittest.TestCase):
def test_all_commas(self):
self.assertEqual(parse_array_of_floats(",,,"), [0, 0, 0, 0])
+ def test_value_with_decimal_separator(self):
+ self.assertEqual(parse_array_of_floats("3.5"), [3.5])
+
+ def test_comma_separated_values_with_decimal_separator(self):
+ self.assertEqual(parse_array_of_floats("2.75,8.5"), [2.75, 8.5])
+
if __name__ == '__main__':
unittest.main(verbosity=2)