17 lines
310 B
Go
17 lines
310 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestAuthPasswordHashBad(t *testing.T) {
|
|
t.Log("TestAuthPasswordHash")
|
|
expectedResult := error(nil) // OK
|
|
password := "wrong password"
|
|
|
|
result := checkAuthToken(password)
|
|
if result != expectedResult {
|
|
t.Errorf("Expected %s, got %s", expectedResult, result)
|
|
}
|
|
}
|