-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
assertPred
and make its code more uniform
This is a fix for #424. The primary fix consists in splitting the logic for equality tests based on the value of `isTrue`. I have separated it as its own function as it's needed for two branches, and Haskell lacks binding or-patterns. Along the way, I have made the code for `assertPred` better documented, and much more uniform. This should make it easier to spot bugs and understand the overall logic.
- Loading branch information
Showing
1 changed file
with
87 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters