gur111 / MtmEx1Tester

Apache License 2.0
1 stars 6 forks source link

Test Ideas #1

Open gur111 opened 4 years ago

gur111 commented 4 years ago

Please put here all first ideas for test cases.

gur111 commented 4 years ago
  1. Stress test areas amount
    • [x] Add and immediately remove
    • [x] Add many then remove many
    • [x] Calculate results in both
  2. Stress tests tribes amount
    • [x] Add and immediately remove
    • [x] Add many then remove many
    • [x] Calculate results in both
  3. Remove areas tests
    • [ ] Remove last
    • [ ] Remove first
    • [ ] Remove from the middle
  4. Remove tribes tests
    • [x] Remove last
    • [x] Remove first
    • [x] Remove from the middle ~- [ ] Call multiple consecutive calls to calculation of results and check equality.~
    • [x] Check adding existing area
    • [x] Check adding existing tribe
    • [x] Check adding invalid area id
    • [x] Check adding invalid tribe id
gur111 commented 4 years ago
HodBadichi commented 4 years ago

ComputeAreas func:

gur111 commented 4 years ago
  1. Make sure strings are duplicated and not merely assigned.
    • [x] add tribe
    • [x] get tribe ~- [ ] add area~ ~- [ ] get area~
gur111 commented 4 years ago
gur111 commented 4 years ago
gur111 commented 4 years ago

Check error codes hierarchy.

gur111 commented 4 years ago

Verify no changes made when functions fail

DanielN162 commented 4 years ago

electionSetTribeName func:

~- [ ] Verify only the target name was changed~

DanielN162 commented 4 years ago
DanielN162 commented 4 years ago

ComputeAreas func:

gur111 commented 4 years ago

Malloc failure verifications. For each function that can fail with memory error. Add memory stability sub test which will validate data integrity (make sure there are no partial modifications to the data).

I've already added a way to simulate malloc failures. See PR #7 Progress is tracked in issue #8

gur111 commented 4 years ago