diff test_utils.py @ 6:22bb32eae6a1 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/points2labelimage/ commit edac062b00490276ef00d094e0594abdb3a3f23c
author imgteam
date Thu, 06 Nov 2025 09:59:34 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test_utils.py	Thu Nov 06 09:59:34 2025 +0000
@@ -0,0 +1,13 @@
+import unittest
+
+import points2label
+
+
+class get_list_depth(unittest.TestCase):
+
+    def test(self):
+        self.assertEqual(points2label.get_list_depth(1234), 0)
+        self.assertEqual(points2label.get_list_depth([]), 1)
+        self.assertEqual(points2label.get_list_depth([1, 2, 3]), 1)
+        self.assertEqual(points2label.get_list_depth([1, [2, 3]]), 2)
+        self.assertEqual(points2label.get_list_depth([[1], [2, 3]]), 2)