Create a new assert.eq() operand that assigns meanings to its operands – for example, explicitly making one argument expected and the other argument actual. This would allow for us to make better, more readable error messages when the assertions actually fail.
One way to migrate the code from the old assert.eq() to the new one:
- Rename the existing function assert.eq_deprecated(), and replace all existing usages via sed.
- Create a new assert.eq() with the desired semantics and start using it in new code.
- Create tickets to migrate older code to use the newer version
Currently, the signature is just function (a, b, msg) and the message in case of failure is just " !=  are not equal" and you have to look into the test to understand if 1 is expected or if 0 is expected.
I suggest to change the signature to function(expected, actual, msg) and change the default message to "expected value  and actual value  are not equal". Of course, many tests still use those interchangeably, but we can write the new tests following this semantics and "fix" the existing tests over time.