[Test] Distance, test euclidean distance on strings too
authorSimon Chabot <simon.chabot@logilab.fr>
Thu, 18 Oct 2012 17:58:28 +0200
changeset 22 0c3ef4909658
parent 21 2f077077b266
child 23 d3b07dc25785
[Test] Distance, test euclidean distance on strings too
test/test_alignment.py
--- a/test/test_alignment.py	Thu Oct 18 17:16:44 2012 +0200
+++ b/test/test_alignment.py	Thu Oct 18 17:58:28 2012 +0200
@@ -112,6 +112,7 @@
     def test_euclidean(self):
         self.assertEqual(euclidean(10, 11), 1)
         self.assertEqual(euclidean(-10, 11), 21)
+        self.assertEqual(euclidean('-10', '11'), 21)
 
 class NormalizerTestCase(testlib.CubicWebTC):
     def setUp(self):