Add more tests

This commit is contained in:
Gabriel Augendre 2021-08-18 20:16:27 +02:00
parent feb756812d
commit 8272126024

View file

@ -19,4 +19,8 @@ func TestNewInseeDataValid(t *testing.T) {
if insee.Gender != gender { if insee.Gender != gender {
t.Errorf("Gender KO. Got %s, expected %s", 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)
}
} }