kaknikhil commented on a change in pull request #433: Kmeans: Add automatic 
optimal cluster estimation
URL: https://github.com/apache/madlib/pull/433#discussion_r320497334
 
 

 ##########
 File path: 
src/ports/postgres/modules/utilities/test/unit_tests/test_validate_args.py_in
 ##########
 @@ -113,5 +113,22 @@ class ValidateArgsTestCase(unittest.TestCase):
             self.subject.input_tbl_valid("foo", "unittest_module")
         self.assertNotIn('custom exception', str(error.exception))
 
+    def test_get_algorithm_name(self):
+        self.assertEqual('abc', self.subject.get_algorithm_name(
+            'abc', 'aaa', ['aaa','abc','bcd'], 'qwerty'))
+        self.assertEqual('aaa', self.subject.get_algorithm_name(
+            'aaa', 'aaa', ['aaa','abc','bcd'], 'qwerty'))
+        self.assertEqual('aaa', self.subject.get_algorithm_name(
+            'aa', 'aaa', ['aaa','abc','bcd'], 'qwerty'))
+        self.assertEqual('bcd', self.subject.get_algorithm_name(
+            'bc', 'aaa', ['aaa','abc','bcd'], 'qwerty'))
+
+        # If two options satisfy the given selectyion,
 
 Review comment:
   typo in selection

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to