blob: bde6b3f7c1a21fa4479b5a150c2c91abdafa0f8b (
plain) (
tree)
|
|
// Copyright © 2022 siddharth <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")
}
}
|