17 lines
255 B
Go
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)
|
|
}
|
|
}
|