Skip to content

Commit

Permalink
Se añade test para título. Closes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
XileonXL committed Dec 17, 2021
1 parent 2e2d7ba commit 41a5394
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/actividad/actividad_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ func TestPaisNoVacio(t *testing.T) {
t.Errorf("País no válido en objeto Zona")
}
}

// ---------------------- Tests de la Entidad Actividad ----------------------
func TestTituloNoVacio(t *testing.T) {
zona := Zona{"Motril", "Granada", "España"}
_, err := NewActividad("", zona, Ocio)
if err != nil {
t.Errorf("Título no válido en objeto Actividad")
}
}

0 comments on commit 41a5394

Please sign in to comment.