mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-23 13:42:25 +08:00
oauth2,jssdk
This commit is contained in:
11
util/signature_test.go
Normal file
11
util/signature_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package util
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestSignature(t *testing.T) {
|
||||
//abc sig
|
||||
abc := "a9993e364706816aba3e25717850c26c9cd0d89d"
|
||||
if abc != Signature("a", "b", "c") {
|
||||
t.Error("test Signature Error")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user