Skip to content
New issue

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

Create a comparison method #5

Open
rasmus91 opened this issue May 4, 2020 · 0 comments
Open

Create a comparison method #5

rasmus91 opened this issue May 4, 2020 · 0 comments

Comments

@rasmus91
Copy link
Owner

rasmus91 commented May 4, 2020

Any test suite should have a delegate field, containing a method of comparison of data.

The default method should do the following:

  • If the type is a string, int, int64 or uint, comparison should be happening by the == operator
  • If the type is a Gee.Hashable comparison should be happening by the .equal_to(...) method
  • If the type is neither, compare by reference ( == ) this should generally NOT happen though, as by then, fields within the object will typically be compared instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant