Update unit-testing.md

This commit is contained in:
dr. mia von steinkirch, phd 2023-02-17 18:06:34 -08:00 committed by GitHub
parent ab1111d9ac
commit fddaddb192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,16 @@
<br>
### assert vs. require
* Assert() should only be used to test for internal errors, and to check invariants.
* Require() should be used to ensure valid conditions are met that cannot be detected until execution time.
* You may optionally provide a message for require, but not for assert.
<br>
### functions