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 10, 2021
1 parent 4dbff28 commit aa9c0ae
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 aa9c0ae

Please sign in to comment.