Skip to content

Commit

Permalink
⬆️ test update
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRossetti committed Feb 23, 2021
1 parent fcac488 commit c84a1d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cdlib/test/test_fitness_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def test_modularity(self):
self.assertGreaterEqual(mod.score, -0.5)

mod = evaluation.modularity_density(g, communities)
self.assertLessEqual(mod.score, 1)
self.assertGreaterEqual(mod.score, -0.5)
self.assertIsInstance(mod.score, float)

mod = evaluation.z_modularity(g, communities)
self.assertLessEqual(mod.score, np.sqrt(g.number_of_nodes()))
Expand Down

0 comments on commit c84a1d9

Please sign in to comment.