Fix tests

This commit is contained in:
Filip Gralinski 2020-02-07 11:00:53 +01:00
parent 169931be8f
commit 593871f19b
5 changed files with 7 additions and 7 deletions

View File

@ -45,7 +45,7 @@ allDisjoint :: Coverable b => [b] -> Bool
allDisjoint [] = True allDisjoint [] = True
allDisjoint (head:tail) = all (disjoint head) tail && allDisjoint tail allDisjoint (head:tail) = all (disjoint head) tail && allDisjoint tail
class (Show e, EntityWithProbability e, Coverable (BareEntity e)) => CoverableEntityWithProbability e where class (EntityWithProbability e, Coverable (BareEntity e)) => CoverableEntityWithProbability e where
precisionScore :: e -> BareEntity e -> Double precisionScore :: e -> BareEntity e -> Double
precisionScore got expected = coveredScore (getBareEntity got) expected precisionScore got expected = coveredScore (getBareEntity got) expected
precisionScoreTotal :: [e] -> [BareEntity e] -> Double precisionScoreTotal :: [e] -> [BareEntity e] -> Double

View File

@ -1 +1 @@
foo:1-10 foo:12-20 foo:1-9 foo:12-19

1 foo:1-10 foo:12-20 foo:1-9 foo:12-19

View File

@ -1 +1 @@
foo:5-15 foo:5-14

1 foo:5-15 foo:5-14

View File

@ -1,2 +1,2 @@
foo:658-699 foo:658-698
foo:0-75 foo:0-74

1 foo:658-699 foo:658-698
2 foo:0-75 foo:0-74

View File

@ -1,2 +1,2 @@
foo:658-700,701-7000 foo:658-699 foo:701-6999
foo:1870-1893 foo:1870-1892

1 foo:658-700,701-7000 foo:658-699 foo:701-6999
2 foo:1870-1893 foo:1870-1892