Permalink
Browse files

Ensure valid edges in non-fuzzy cases.

  • Loading branch information...
1 parent a498903 commit e9c7ff7b9fc30def9d1f4abc085e9f01b035a343 @ezod committed Nov 23, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 test.py
View
3 test.py
@@ -172,6 +172,9 @@ def test_mu(self):
self.assertEqual(self.T.mu(2.0), 0.5)
self.assertEqual(self.G.mu(12.0), 1.0)
self.assertEqual(self.G.mu(self.G.support[1] + 1.0), 0.0)
+ M = fuzz.TrapezoidalFuzzyNumber((1, 2), (1, 2))
+ self.assertEqual(M.mu(1), 1.0)
+ self.assertEqual(M.mu(2), 1.0)
def test_height(self):
self.assertEqual(self.N.height, 1.0)

0 comments on commit e9c7ff7

Please sign in to comment.