gotestyourself / gotestyourself/gotest.tools

Issues implementing a "Not" comparison

Open
#147 13 comments 3 reactions 0 assignees View on GitHub
documentation
Dominant language
Go
Stars
576
Forks
54
Avg merge
6d 3h
Merged PRs (30d)
2

Description

Basically, I tried implementing a generic `Not` comparison like `assert.Assert(t, Not(cmp.Equal(foo, bar))`.

The interface here seems a bit limiting as I do not have access to variables, formatting or anything from my `Not` comparison.
It seems right now I would have to implement a `NotEqual` comparison in order to gain access variables and the like.

I'm wondering if some additional interface could help here? Maybe something that a comparison could optionally implement to make it easier to wrap?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.