idfm-api/types/id_test.go

12 lines
241 B
Go
Raw Normal View History

2023-07-14 10:23:33 +00:00
package types
import "testing"
// TestIDCheck checks if ID.Check returns an error when given an empty ID
func TestIDCheck(t *testing.T) {
id := ID("")
if id.Check() == nil {
t.Errorf("Received no error even though we expect one")
}
}