From 82721260247fafdf595aa07bc0e001afcf8e7171 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 18 Aug 2021 20:16:27 +0200 Subject: [PATCH] Add more tests --- data/insee_data_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/insee_data_test.go b/data/insee_data_test.go index c374b20..7cf321e 100644 --- a/data/insee_data_test.go +++ b/data/insee_data_test.go @@ -19,4 +19,8 @@ func TestNewInseeDataValid(t *testing.T) { if insee.Gender != gender { t.Errorf("Gender KO. Got %s, expected %s", insee.Gender, gender) } + year := 1969 + if insee.Year != year { + t.Errorf("Year KO. Got %d, expected %d", insee.Year, year) + } }