Skip to content
Discussion options

You must be logged in to vote

Since version 0.13.0 of asserting it is possible to write custom assertion methods with reusing of existing assertions.

I have rewritten the example for the Snake struct here.

The actual implementation is similar to the helper function above. Main advantage ist that we can use the custom assertion methods in the tests.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@davidarkemp
Comment options

Comment options

You must be logged in to vote
1 reply
@davidarkemp
Comment options

Comment options

You must be logged in to vote
3 replies
@davidarkemp
Comment options

@haraldmaida
Comment options

@haraldmaida
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by haraldmaida
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants