You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have array equality assertions, comparing element by element.
Some thoughts about this:
As seen here, C++ supports literal arrays, but I believe it's mandatory to assign them to a variable: int expected[] = { 16, 2, 77, 40, 12071 };. It would be great to avoid the variable and write something like should(numbers) be equal({ 16, 2, 77, 40, 12071 })
The user should be able to decide whether the elements must be in the same order or not
The text was updated successfully, but these errors were encountered:
faloi
changed the title
Assertions para arrays
Arrays assertions
Jun 18, 2014
faloi
changed the title
Arrays assertions
Assertions for arrays
Jun 18, 2014
It would be nice to have array equality assertions, comparing element by element.
Some thoughts about this:
int expected[] = { 16, 2, 77, 40, 12071 };
. It would be great to avoid the variable and write something likeshould(numbers) be equal({ 16, 2, 77, 40, 12071 })
The text was updated successfully, but these errors were encountered: