divine-comedian / Capstone-Project

1 stars 3 forks source link

Testing #3

Closed shkron closed 1 year ago

shkron commented 1 year ago
  1. Created Testing Branch
  2. Added Initial dummy test. Including OverflowTest.sol file (inside contracts/misc folder) and overfloTest.ts (renamed test folder to tests and updated paths)
  3. Regenerated artifacts

output

yarn hardhat test

  Testing Overflow operations
    When incrementing under safe circumstances
      ✔ increments correctly
    When incrementing to overflow
      ✔ reverts
    When incrementing to overflow within a unchecked block
      ✔ overflows and increments

  3 passing (1s)