mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Expanded tests where missing (models)
This commit is contained in:
parent
be50b7fc3a
commit
a495416882
1 changed files with 7 additions and 0 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue