We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now Assert.AreEqual<T> takes the easy way out (probably the Delphi RTL takes the easy way out as well) by using TComparer<T>.Default.
Assert.AreEqual<T>
TComparer<T>.Default
This happens for any dynamic array (I'm working for a fix on that) or any record type having reference fields in it for instance on this:
TRecordWithReferences = record Value: Integer; Reference: string; end;
The intrinsic Copy in the System unit is smarter and ends up in methods like _CopyArray and __CopyRecord to do the actual deep copy.
Copy
System
_CopyArray
__CopyRecord
It would be nice (but a lot of work) to do something similar for DUnitX on the comparison level.
The text was updated successfully, but these errors were encountered:
Happy to accept a PR for this, I don't have the time to implement it myself right now.
Sorry, something went wrong.
No branches or pull requests
Right now
Assert.AreEqual<T>
takes the easy way out (probably the Delphi RTL takes the easy way out as well) by usingTComparer<T>.Default
.This happens for any dynamic array (I'm working for a fix on that) or any record type having reference fields in it for instance on this:
The intrinsic
Copy
in theSystem
unit is smarter and ends up in methods like_CopyArray
and__CopyRecord
to do the actual deep copy.It would be nice (but a lot of work) to do something similar for DUnitX on the comparison level.
The text was updated successfully, but these errors were encountered: