From e519b3db27ce85855cb74fbd5ddc871989e02ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Mon, 31 Oct 2022 13:03:26 -0300 Subject: [PATCH] Minor improvement to one test --- test_adapters.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_adapters.go b/test_adapters.go index 331f03f..1649fa2 100644 --- a/test_adapters.go +++ b/test_adapters.go @@ -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) }) })