Skip to content

Golang nonFixed tests #2443

Answered by kazk
AharonSambol asked this question in Q&A
Aug 3, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Do you mean something equivalent to assert(test(Solve(puzzle)))? test returns true if the solution is valid. I think it's Expect(test(Solve(puzzle))).To(Equal(true)) in Gomega.

You can also implement your own custom assertion. See https://onsi.github.io/gomega/

If you can describe what you're having trouble with more specifically, it's easier to help.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by AharonSambol
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