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

Matcher parity with Unity #29

Open
malsyned opened this issue Oct 5, 2017 · 2 comments
Open

Matcher parity with Unity #29

malsyned opened this issue Oct 5, 2017 · 2 comments

Comments

@malsyned
Copy link
Owner

malsyned commented Oct 5, 2017

Mostly this is about floating point matching and one-dimensional arrays for built-in types, I think.

@malsyned
Copy link
Owner Author

malsyned commented Oct 8, 2017

equal ints, various sizes
equal uints, various sizes
equal uints with hex printing, various sizes
not equal
whether certain bits are set, cleared, or equal to a mask in another int
greater than, various integer sizes, signednesses, and hexnesses
less than, various integer sizes, signednesses, and hexnesses
within, various integer sizes, signednesses, and hexnesses
equal pointers
equal strings
equal snstrings
equal memory
equal int arrays, various sizes, signednesses, and hexnesses
equal pointer arrays
equal string arrays
equal memory arrays
arrays where all elements match an int of various sizes, signednesses, and hexnesses
arrays where all elements match a pointer
arrays where all elements match a string
arrays where all elements match a memory buffer

within, floats (printing should include +/- inf, NaN)
array of floats within

within, doubles
array of doubles within

@malsyned
Copy link
Owner Author

Maybe we want to implement some wrapper functions to get the convenience of Unity in simple assertions? Like

assert_equal_hex16(expected, actual);
/* => */ assert_that("", as_hex(the_u16(actual)), is(as_hex(the_u16(expected))));

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