Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NOTE – some tests throw exceptions that are handled in the test, so the test does not fail, these failures can be ignored during development of FIP-41

Testing scenarios for merging of locking periods trnsloctoks

  1. size 0 periods is error for op1

  2. size 0 periods is error for op2

  3. size 0 periods for op1 and op2 is error

  4. insert locks first time into existing account. verify locks

  5. insert duplicate lock into test 2 results, verify that a merge takes place with correct durations.

  6. insert operator 1 lock periods are 1 period longer than operator 2 locks, verify correct merge.

  7. op1 has all period durations less than op2 verify proper merge

  8. op2 has all period durations less than op1 verify proper merge.

  9. insert a duplicate duration in first item in op1 and first item op2, verify correct merge

  10. insert a duplicate duration in first item in op1 and last item in op2, verify correct merge

  11. insert a duplicate duration in second item in op1 and first item in op2, verify correct merge

  12. insert a duplicate duration in last item in op1and last item in op2, verify correct merge.

  13. total periods greater then 50 in both periods to be merged (fail test).

  14. invalid periods passed into transfer locked to pre-existing account. (fail test)

  15. max test, verify proper merge of 25 periods in each operator.

  16. MORE TESTS COMING SOON!!!

Testing of completed changes

test the following use cases.

...