Skip to content

Commit

Permalink
Expanded tests where missing (models)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHoefelmeyer committed Sep 25, 2023
1 parent be50b7f commit a495416
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/models/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ func TestGuessDate(t *testing.T) {
if _, guess := guessDate("2006-01-02T15:04:05"); !guess {
t.Errorf("Failure: Could not guess valid Date from valid string")
}
if _, guess := guessDate("2006"); !guess {
t.Errorf("Failure: Could not guess valid Date from valid string")
}
if _, guess := guessDate("2006-01-02"); !guess {
t.Errorf("Failure: Could not guess valid Date from valid string")
}

if _, guess := guessDate(""); guess {
t.Errorf("Failure: Guessed Date from invalid string")
}
Expand Down

0 comments on commit a495416

Please sign in to comment.