コード例 #1
0
ファイル: ut_bang.py プロジェクト: why-not/pyclustering
 def test_argument_invalid_levels(self):
     bang_test_template.exception(ValueError, SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                  0, 0.0, False)
     bang_test_template.exception(ValueError, SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                  -1, 0.0, False)
     bang_test_template.exception(ValueError, SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                  -10, 0.0, False)
コード例 #2
0
 def test_argument_empty_data(self):
     bang_test_template.exception(ValueError, [], 1, 0.0, False)
コード例 #3
0
 def test_argument_invalid_density(self):
     bang_test_template.exception(ValueError, SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, -1.0, False)
     bang_test_template.exception(ValueError, SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, -2.0, False)
コード例 #4
0
ファイル: ut_bang.py プロジェクト: annoviko/pyclustering
 def test_argument_invalid_levels(self):
     bang_test_template.exception(ValueError, SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 0, 0.0, False)
     bang_test_template.exception(ValueError, SIMPLE_SAMPLES.SAMPLE_SIMPLE1, -1, 0.0, False)
     bang_test_template.exception(ValueError, SIMPLE_SAMPLES.SAMPLE_SIMPLE1, -10, 0.0, False)