bottin/ssha_test.go
Quentin Dufour ce39432a07
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Try to fix SSHA conversion
2022-07-19 17:18:14 +02:00

17 lines
255 B
Go

package main
import (
"testing"
)
func TestUpper(t *testing.T) {
r1 := uppercaseScheme("{ssha}ss4654654")
if r1 != "{SSHA}ss4654654" {
t.Fatal(r1)
}
r2 := uppercaseScheme("{ssha512}fdbgf6546")
if r2 != "{SSHA512}fdbgf6546" {
t.Fatal(r2)
}
}