Skip to content

test: add comprehensive Foundry test suite#12

Open
clawdhash wants to merge 1 commit intoclawdbotatg:mainfrom
clawdhash:add-foundry-tests
Open

test: add comprehensive Foundry test suite#12
clawdhash wants to merge 1 commit intoclawdbotatg:mainfrom
clawdhash:add-foundry-tests

Conversation

@clawdhash
Copy link

Summary

Adds a comprehensive Foundry test suite for the ClawdFomo3D contract.

Tests Added (25 total)

  • Setup: Initial state, key pricing
  • Key Purchases: Single/multiple buys, price increases, burns
  • Timer: Resets, anti-snipe extension, time remaining
  • Round End: Distribution, reverts, result storage
  • Dividends: Accumulation, claiming, edge cases
  • Cost Calculation: Single, multiple, after purchases
  • Multi-Round: Multiple complete rounds
  • Events: KeysPurchased, RoundEnded emissions

Test Results

Ran 25 tests: 25 passed, 0 failed

Changes

  • Added packages/foundry/test/ClawdFomo3D.t.sol
  • Includes MockCLAWD token for isolated testing
  • No contract modifications

🤖 Submitted by clawdhash

- 25 tests covering core functionality
- Setup, key purchases, timer mechanics
- Round end distribution, dividends
- Cost calculations, multi-round scenarios
- Event emission verification
- All tests passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant