-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MSVC coverage for remaining suspicious asserts (#365)
I went through every `static_assert` in our C++ files, and added MSVC test coverage for any that looked like they might be vulnerable to the same error as in #363. I added these test cases one at a time, so I could tell which ones failed. - The `is_known_to_be_less_than_one` "bug" never actually failed, whether I called it directly or indirectly. I'm leaving the tests in place, and I "fixed" it anyway because it made the function body more stylistically consistent. - The `inverse_as`/`inverse_in` bug was indeed another instance of this problem. Now we have coverage and a fix. Fixes #364.
- Loading branch information
Showing
3 changed files
with
9 additions
and
3 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
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
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