Files
goutils/otp_test.go
Kyle Isom dbbd5116b5 Initial import.
Basic HOTP functionality.
2013-12-18 21:48:14 -07:00

14 lines
246 B
Go

package twofactor
import "fmt"
import "testing"
func TestHOTPString(t *testing.T) {
hotp := NewHOTP(nil, 0, 6)
hotpString := OTPString(hotp)
if hotpString != "OATH-HOTP, 6" {
fmt.Println("twofactor: invalid OTP string")
t.FailNow()
}
}