Closed red8888 closed 4 months ago
I have a test that is semi-nondeterministic. I know thats generally bad but I just want to allow 2 possible values. Does testify support this?
Ie I'm looking for something like: testSuite.Equal(<ALLOWED_VALUE_ONE> | <ALLOWED_VALUE_TWO>, <ACTUAL_VALUE>)
testSuite.Equal(<ALLOWED_VALUE_ONE> | <ALLOWED_VALUE_TWO>, <ACTUAL_VALUE>)
Is there support for this?
Hi! can you use assert.Contains ? https://github.com/stretchr/testify/blob/master/assert/assertions.go#L886
assert.Contains
If this suggestion doesn't work for you, please do comment again or start a discussion (tab up top).
I have a test that is semi-nondeterministic. I know thats generally bad but I just want to allow 2 possible values. Does testify support this?
Ie I'm looking for something like:
testSuite.Equal(<ALLOWED_VALUE_ONE> | <ALLOWED_VALUE_TWO>, <ACTUAL_VALUE>)
Is there support for this?