aboutsummaryrefslogblamecommitdiff
path: root/ssha_test.go
blob: 762043659b5af97253e3a3836fb8d65d6a5dd0ec (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                   
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)
	}
}