mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-07 21:24:01 -05:00
14 lines
228 B
Go
14 lines
228 B
Go
package shamir
|
|
|
|
import "testing"
|
|
|
|
func TestTables(t *testing.T) {
|
|
for i := 1; i < 256; i++ {
|
|
logV := logTable[i]
|
|
expV := expTable[logV]
|
|
if expV != uint8(i) {
|
|
t.Fatalf("bad: %d log: %d exp: %d", i, logV, expV)
|
|
}
|
|
}
|
|
}
|