Golang nonFixed tests #2443
-
Hi I'm trying to write a kata in golang but my puzzles could have more than one solution each, I can't seem to figure out how to test this... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Do you mean something equivalent to 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. |
Beta Was this translation helpful? Give feedback.
Do you mean something equivalent to
assert(test(Solve(puzzle)))
?test
returnstrue
if the solution is valid. I think it'sExpect(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.