mirror of
https://github.com/autistic-symposium/web3-starter-sol.git
synced 2025-07-12 01:39:27 -04:00
Update unit-testing.md
This commit is contained in:
parent
ab1111d9ac
commit
fddaddb192
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue