mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
added back some example parameter sets
This commit is contained in:
25
examples/example_test.go
Normal file
25
examples/example_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user