Hello,
I am currently working on Query single stream using XREAD section in Redis challenge and my broken implementation passed the tests.
I haven’t even taken this into consideration “Another difference is that XREAD is exclusive. This means that the command retrieves all entries with an ID greater than the specified ID.”
I just wanted to try the output response to build the nested resp array.
Basically, I generated a response that would have repeated the stream key and a single stream data element for each element in the stream. The test only passed because there was only one stream with one element that passed the exclusive time constraint which was what I created by mistake.
I believe a meaningful test for this would be a minimum of 3 elements, the first one doesn’t pass the XREAD exclusive constraint and the 2 next elements properly formatted in the response.