For the submitting survey responses API, with our validating logic, we did not allow submitting questions with different orders. I updated the logic to support it.
Insight 📝
The order of array when using intersection can affect the result.
(a & b) == b is different with (b & a) == b
Proof Of Work 📹
When I added tests with questions that have different orders:
What happened 👀
For the submitting survey responses API, with our validating logic, we did not allow submitting questions with different orders. I updated the logic to support it.
Insight 📝
The order of array when using intersection can affect the result.
(a & b) == b
is different with(b & a) == b
Proof Of Work 📹
When I added tests with questions that have different orders:
All tests are passed: