I use the Expect.equal to test if records are the same but on records with quite a few fields the message from equal isn’t always helpful as it can be quite long and difficult to see where the mismatch is.
Could the message be altered to include a bit of help? Maybe just passing the 2 records through a sprintf “%A” and using the same logic as this diffString could be a big help.
I use the Expect.equal to test if records are the same but on records with quite a few fields the message from equal isn’t always helpful as it can be quite long and difficult to see where the mismatch is.
Could the message be altered to include a bit of help? Maybe just passing the 2 records through a sprintf “%A” and using the same logic as this diffString could be a big help.