Skip to content

Commit

Permalink
Se añade test para provincia. Closes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
XileonXL committed Dec 17, 2021
1 parent 6db16b8 commit 916d03f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/actividad/actividad_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ func TestLocalidadNoVacia(t *testing.T) {
t.Errorf("Localidad no válida en objeto Zona")
}
}

func TestProvinciaNoVacia(t *testing.T) {
_, err := NewZona("Motril", "", "España")
if err != nil {
t.Errorf("Provincia no válida en objeto Zona")
}
}

0 comments on commit 916d03f

Please sign in to comment.