chore(test): type of examOccurrenceCapacity changed

This commit is contained in:
Wolfgang Witt 2021-03-02 13:26:58 +01:00 committed by Wolfgang Witt
parent 292f5cf91b
commit b36a15c0b2

View File

@ -168,7 +168,7 @@ spec = do
createOccurrences acc
| sum (map snd acc) < totalSpaceRequirement = do
Entity {entityKey, entityVal} <- Entity <$> arbitrary <*> arbitrary
createOccurrences $ (entityKey, examOccurrenceCapacity entityVal) : acc
createOccurrences $ (entityKey, fromIntegral $ examOccurrenceCapacity entityVal) : acc
| otherwise = pure acc
Map.fromList <$> createOccurrences []
genNudge :: [(Int, Integer)] -> Map ExamOccurrenceId Integer -> ExamOccurrenceId -> Gen (Map ExamOccurrenceId Integer)