Skip to content

test: add scenarios for LIFO/FIFO and large-scale stress test#4

Open
poyrazK wants to merge 1 commit intomamitrkr:mainfrom
poyrazK:test/add-scenarios
Open

test: add scenarios for LIFO/FIFO and large-scale stress test#4
poyrazK wants to merge 1 commit intomamitrkr:mainfrom
poyrazK:test/add-scenarios

Conversation

@poyrazK
Copy link
Copy Markdown

@poyrazK poyrazK commented Mar 5, 2026

Enhances the test suite with robust scenarios.

New Tests:

  • StackLIFOOrdering: Confirms last-in-first-out behavior.
  • QueueFIFOOrdering: Confirms first-in-first-out behavior.
  • LargeScaleStressTest: Stress tests the system with many planets and elements to ensure counters remain in sync.

These tests ensure the underlying data structures behave according to their mathematical models and that the system scales correctly.

Enhances the test suite in `tests/unit_tests.cpp` with new scenarios:
- Verifies LIFO behavior for StackPlanet.
- Verifies FIFO behavior for QueuePlanet.
- Adds a large-scale stress test (50 planets, 1000 elements) to ensure counter integrity and performance.
- Validates consistent element counting across mixed operations.
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