mvonsteinkirch fb77004daf add_files
2022-12-24 20:32:16 -08:00
..
2022-12-24 20:32:16 -08:00
2022-12-24 20:32:16 -08:00

tests in solidity

tl; dr

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