mirror of
https://github.com/autistic-symposium/web3-starter-sol.git
synced 2025-04-22 16:59:08 -04:00
Update unit-testing.md
This commit is contained in:
parent
ab1111d9ac
commit
fddaddb192
@ -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…
x
Reference in New Issue
Block a user