diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-07-19 17:18:14 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-07-19 17:18:14 +0200 |
commit | ce39432a07ee74723b611fc3060357f0782cd783 (patch) | |
tree | 2ff86bd5c5dc889b6ab91747d6438fb632a81bb4 /ssha_test.go | |
parent | aac8ee19d7ef80f437714f882ec8e32b06d00f41 (diff) | |
download | bottin-ce39432a07ee74723b611fc3060357f0782cd783.tar.gz bottin-ce39432a07ee74723b611fc3060357f0782cd783.zip |
Try to fix SSHA conversionlowercase_scheme
Diffstat (limited to 'ssha_test.go')
-rw-r--r-- | ssha_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ssha_test.go b/ssha_test.go new file mode 100644 index 0000000..7620436 --- /dev/null +++ b/ssha_test.go @@ -0,0 +1,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) + } +} |