web3-starter-sol/tests
dr. mia von steinkirch, phd e23b6d5172
Update unit-testing.md
2023-02-17 18:04:34 -08:00
..
README.md Update README.md 2023-02-17 10:56:03 -08:00
unit-testing.md Update unit-testing.md 2023-02-17 18:04:34 -08:00

tests in solidity


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.

unit testing



resources