chore(test): type of examOccurrenceCapacity changed
This commit is contained in:
parent
292f5cf91b
commit
b36a15c0b2
@ -168,7 +168,7 @@ spec = do
|
|||||||
createOccurrences acc
|
createOccurrences acc
|
||||||
| sum (map snd acc) < totalSpaceRequirement = do
|
| sum (map snd acc) < totalSpaceRequirement = do
|
||||||
Entity {entityKey, entityVal} <- Entity <$> arbitrary <*> arbitrary
|
Entity {entityKey, entityVal} <- Entity <$> arbitrary <*> arbitrary
|
||||||
createOccurrences $ (entityKey, examOccurrenceCapacity entityVal) : acc
|
createOccurrences $ (entityKey, fromIntegral $ examOccurrenceCapacity entityVal) : acc
|
||||||
| otherwise = pure acc
|
| otherwise = pure acc
|
||||||
Map.fromList <$> createOccurrences []
|
Map.fromList <$> createOccurrences []
|
||||||
genNudge :: [(Int, Integer)] -> Map ExamOccurrenceId Integer -> ExamOccurrenceId -> Gen (Map ExamOccurrenceId Integer)
|
genNudge :: [(Int, Integer)] -> Map ExamOccurrenceId Integer -> ExamOccurrenceId -> Gen (Map ExamOccurrenceId Integer)
|
||||||
|
|||||||
Reference in New Issue
Block a user