I know the question can be unclear. I will attempt to explain.
I have a scenario where I need to verify for a sequence of values 5,10,15,20....,
only that the system that produces sequence is not very accurate that sometimes it can miss the values or repeat couple of values like 5, 10,10,20,25,30,40.
So as you can see there is a tolerance of 5-10
.
This is okay. I have to verify that the sequence does not go backwards like 5,10,15,10.. or 5,10,9,....
I need to write a PASS FAIL condition using a logic that Passes if it sees monotonically increasing sequence with occasional misses or repeats, fails if it sees values go backwards or differ by more than 10 (like 5, 20, 15...)
Can someone please help me identify right logic for this