...
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
size 0 periods is error for op1
size 0 periods is error for op2
size 0 periods for op1 and op2 is error
insert locks first time into existing account. verify locks
insert duplicate lock into test 2 results, verify that a merge takes place with correct durations.
insert operator 1 lock periods are 1 period longer than operator 2 locks, verify correct merge.
op1 has all period durations less than op2 verify proper merge
op2 has all period durations less than op1 verify proper merge.
insert a duplicate duration in first item in op1 and first item op2, verify correct merge
insert a duplicate duration in first item in op1 and last item in op2, verify correct merge
insert a duplicate duration in second item in op1 and first item in op2, verify correct merge
insert a duplicate duration in last item in op1and last item in op2, verify correct merge.
total periods greater then 50 in both periods to be merged (fail test).
invalid periods passed into transfer locked to pre-existing account. (fail test)
max test, verify proper merge of 25 periods in each operator.
MORE TESTS COMING SOON!!!
Testing of completed changes
test the following use cases.
...