Exemplo n.º 1
0
 def testIncompleteness(self):
     """Test incompleteness."""
     bad_pyuntl = untldict2py(BAD_UNTL_DICT)
     incompleteness = determine_completeness(bad_pyuntl)
     self.assertTrue(incompleteness < 0.02)
Exemplo n.º 2
0
 def testCompleteness(self):
     """Test completeness."""
     pyuntl = untldict2py(UNTL_DICT)
     completeness = determine_completeness(pyuntl)
     self.assertEqual(completeness, 1.0)
Exemplo n.º 3
0
 def testCompleteness(self):
     """Test completeness."""
     pyuntl = untldict2py(UNTL_DICT)
     completeness = determine_completeness(pyuntl)
     self.assertEqual(completeness, 1.0)
Exemplo n.º 4
0
 def testIncompleteness(self):
     """Test incompleteness."""
     bad_pyuntl = untldict2py(BAD_UNTL_DICT)
     incompleteness = determine_completeness(bad_pyuntl)
     self.assertTrue(incompleteness < 0.02)
Exemplo n.º 5
0
 def completeness(self):
     """Return completeness as double."""
     return determine_completeness(self)