clarify sets of tests

pull/963/merge
Ivo van der Wijk 2020-05-27 18:48:56 +02:00 committed by Boyan Soubachov
parent 51b7cfe385
commit 9ffb85bbec
1 changed files with 6 additions and 0 deletions

View File

@ -513,11 +513,14 @@ func TestNotEqual(t *testing.T) {
mockT := new(testing.T)
cases := []TestCase{
// cases that are expected not to match
{"Hello World", "Hello World!", true},
{123, 1234, true},
{123.5, 123.55, true},
{[]byte("Hello World"), []byte("Hello World!"), true},
{nil, new(AssertionTesterConformingObject), true},
// cases that are expected to match
{nil, nil, false},
{"Hello World", "Hello World", false},
{123, 123, false},
@ -543,11 +546,14 @@ func TestNotEqualValues(t *testing.T) {
mockT := new(testing.T)
cases := []TestCase{
// cases that are expected not to match
{"Hello World", "Hello World!", true},
{123, 1234, true},
{123.5, 123.55, true},
{[]byte("Hello World"), []byte("Hello World!"), true},
{nil, new(AssertionTesterConformingObject), true},
// cases that are expected to match
{nil, nil, false},
{"Hello World", "Hello World", false},
{123, 123, false},