mirror of
https://github.com/amigan/aim-oscar-server.git
synced 2024-11-21 12:09:48 -05:00
14 lines
278 B
Go
14 lines
278 B
Go
package services
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
)
|
|
|
|
func TestRoast(t *testing.T) {
|
|
expected := []byte{0x83, 0x47, 0xF2, 0xB7, 0x4E, 0xE9, 0xA9, 0xF6}
|
|
result := roast("password")
|
|
if !bytes.Equal(result, expected) {
|
|
t.Errorf("expected %+v, but got %+v", expected, result)
|
|
}
|
|
}
|