MySQL select statement tests.

This commit is contained in:
go-jet 2019-08-01 16:56:54 +02:00
parent 449cd9fd8f
commit 6af43f0c46
22 changed files with 65812 additions and 47193 deletions

View file

@ -102,7 +102,7 @@ func TestJoinEverything(t *testing.T) {
assert.NilError(t, err)
assert.Equal(t, len(dest), 275)
testutils.AssertJSONFile(t, "./postgres/testdata/joined_everything.json", dest)
testutils.AssertJSONFile(t, dest, "./postgres/testdata/joined_everything.json")
}
func TestSelfJoin(t *testing.T) {
@ -142,7 +142,7 @@ ORDER BY "Employee"."EmployeeId";
assert.NilError(t, err)
assert.Equal(t, len(dest), 8)
testutils.AssertJSON(t, dest[0:2], `
testutils.AssertJSON(t, `
[
{
"EmployeeId": 1,
@ -197,7 +197,7 @@ ORDER BY "Employee"."EmployeeId";
}
}
]
`)
`, dest[0:2])
}