Minor improvement to one test

pull/32/head
Vinícius Garcia 2022-10-31 13:03:26 -03:00
parent b2e146d5e8
commit e519b3db27
1 changed files with 3 additions and 0 deletions

View File

@ -221,14 +221,17 @@ func QueryTest(
tt.AssertEqual(t, rows[0].User.ID, joao.ID)
tt.AssertEqual(t, rows[0].User.Name, "João Ribeiro")
tt.AssertEqual(t, rows[0].Post.Title, "João Post1")
tt.AssertNotEqual(t, rows[0].Post.ID, 0)
tt.AssertEqual(t, rows[1].User.ID, bia.ID)
tt.AssertEqual(t, rows[1].User.Name, "Bia Ribeiro")
tt.AssertEqual(t, rows[1].Post.Title, "Bia Post1")
tt.AssertNotEqual(t, rows[1].Post.ID, 0)
tt.AssertEqual(t, rows[2].User.ID, bia.ID)
tt.AssertEqual(t, rows[2].User.Name, "Bia Ribeiro")
tt.AssertEqual(t, rows[2].Post.Title, "Bia Post2")
tt.AssertNotEqual(t, rows[2].Post.ID, 0)
})
})