mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
26 lines
449 B
Go
26 lines
449 B
Go
package examples
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/tuneinsight/lattigo/v4/he/hefloat"
|
|
"github.com/tuneinsight/lattigo/v4/he/heint"
|
|
)
|
|
|
|
func TestExampleParams(t *testing.T) {
|
|
for _, pl := range HEIntParams {
|
|
p, err := heint.NewParametersFromLiteral(pl)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
p.RingQ()
|
|
}
|
|
for _, pl := range HEFloatParams {
|
|
p, err := hefloat.NewParametersFromLiteral(pl)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
p.RingQ()
|
|
}
|
|
}
|