chore(test): re-enable justifiedNullResult-test

This commit is contained in:
Wolfgang Witt 2021-02-18 18:01:06 +01:00 committed by Wolfgang Witt
parent 5480e2d7b7
commit 795598ea06

View File

@ -150,12 +150,10 @@ spec = do
myAnnotate "shown ranges don't match userMap"
$ shouldSatisfy (rule, userProperties, occurrenceMapping, userMap) $ uncurry4 showsCorrectRanges
-- is a nullResult justified?
Nothing -> pure ()
{-
Nothing ->
-- disabled for now, probably not correct with the current implementation
myAnnotate "unjustified nullResult"
$ shouldSatisfy (rule, userProperties, occurrences) $ uncurry3 isNullResultJustified
-}
-- | generate users without any pre-assigned rooms
genUsersWithOccurrences :: Preselection -> Gen (Map UserId (User, Maybe ExamOccurrenceId), Map ExamOccurrenceId Natural)
genUsersWithOccurrences preselection = do
@ -263,7 +261,6 @@ spec = do
ExamRoomMatriculation -> isSuffixOf
_rule -> isPrefixOf
_otherwise -> (rule /= ExamRoomSurname) && (rule /= ExamRoomMatriculation)
{-
-- | Is mapping impossible?
isNullResultJustified :: ExamOccurrenceRule
-> Map UserId (UserProperties, Maybe ExamOccurrenceId)
@ -307,4 +304,3 @@ spec = do
predToPositive 0 = Nothing
predToPositive 1 = Nothing
predToPositive n = Just $ pred n
-}