diff --git a/worker/test/src/RTC/TestSeqManager.cpp b/worker/test/src/RTC/TestSeqManager.cpp index 1b90581128..9ae42b7ddd 100644 --- a/worker/test/src/RTC/TestSeqManager.cpp +++ b/worker/test/src/RTC/TestSeqManager.cpp @@ -176,6 +176,21 @@ SCENARIO("SeqManager", "[rtc][SeqMananger]") validate(seqManager2, inputs); } + SECTION("receive out of order numbers with a big jump") + { + // clang-format off + std::vector> inputs = + { + { 4, 4, false, false }, + { 3, 3, false, false }, + { 65535, 65535, false, false }, + }; + // clang-format on + + SeqManager seqManager; + validate(seqManager, inputs); + } + SECTION("receive mixed numbers with a big jump, drop before jump") { // clang-format off @@ -848,6 +863,21 @@ SCENARIO("SeqManager", "[rtc][SeqMananger]") validate(seqManager2, inputs2); } + SECTION("receive out of order numbers with a big jump (with initial output)") + { + // clang-format off + std::vector> inputs = + { + { 4, 1004, false, false }, + { 3, 1003, false, false }, + { 65535, 999, false, false }, + }; + // clang-format on + + SeqManager seqManager(/*initialOutput*/ 1000u); + validate(seqManager, inputs); + } + SECTION("receive mixed numbers with a big jump, drop before jump (with initial output)") { // clang-format off