// ExpectNe(e, a) is equivalent to // ExpectThat(a, oglematchers.Not(oglematchers.Equals(e))). func ExpectNe(expected, actual interface{}, errorParts ...interface{}) { expectThat( actual, oglematchers.Not(oglematchers.Equals(expected)), 1, errorParts) }
// AssertNe(e, a) is equivalent to AssertThat(a, oglematchers.Not(oglematchers.Equals(e))). func AssertNe(expected, actual interface{}, errorParts ...interface{}) ExpectationResult { res := ExpectThat(actual, oglematchers.Not(oglematchers.Equals(expected)), errorParts...) res.SetCaller(getCallerForAlias()) matcherErr := res.MatchResult() if matcherErr != nil { panic(&assertThatError{}) } return res }
// ExpectNe(e, a) is equivalent to ExpectThat(a, oglematchers.Not(oglematchers.Equals(e))). func ExpectNe(expected, actual interface{}, errorParts ...interface{}) ExpectationResult { res := ExpectThat(actual, oglematchers.Not(oglematchers.Equals(expected)), errorParts...) res.SetCaller(getCallerForAlias()) return res }