blob: 5b4ba35b2a4296ad59bea01dda437c3ae32204a6 (
plain) (
tree)
|
|
// 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")
}
}
|