blob: 5b4ba35b2a4296ad59bea01dda437c3ae32204a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright © 2022 siddharth ravikumar <s@ricketyspace.net>
// SPDX-License-Identifier: ISC
package lib
import (
"testing"
)
func TestShaShr(t *testing.T) {
s := uint32(256)
sr := shaShr(s, 2)
if sr != s>>2 {
t.Errorf("shaShr test failed")
}
}
|