Skip to content

Commit

Permalink
adding more slow tests to be skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
AnomalRoil committed Apr 29, 2024
1 parent 219d1d0 commit 13e391e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions group/curve25519/curve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,27 @@ func TestCompareProjectiveExtended25519(t *testing.T) {
}

func TestCompareProjectiveExtendedE382(t *testing.T) {
if testing.Short() {
t.Skip("skipping slow test in -short mode.")
}
test.CompareGroups(t, testSuite.XOF,
new(ProjectiveCurve).Init(ParamE382(), false),
new(ExtendedCurve).Init(ParamE382(), false))
}

func TestCompareProjectiveExtended41417(t *testing.T) {
if testing.Short() {
t.Skip("skipping slow test in -short mode.")
}
test.CompareGroups(t, testSuite.XOF,
new(ProjectiveCurve).Init(Param41417(), false),
new(ExtendedCurve).Init(Param41417(), false))
}

func TestCompareProjectiveExtendedE521(t *testing.T) {
if testing.Short() {
t.Skip("skipping slow test in -short mode.")
}
test.CompareGroups(t, testSuite.XOF,
new(ProjectiveCurve).Init(ParamE521(), false),
new(ExtendedCurve).Init(ParamE521(), false))
Expand Down
3 changes: 3 additions & 0 deletions sign/eddsa/eddsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ func TestEdDSAVerifySmallOrderPK(t *testing.T) {

// Test the property of a EdDSA signature
func TestEdDSASigningRandom(t *testing.T) {
if testing.Short() {
t.Skip("Skipping slow tests in -short mode")
}
suite := edwards25519.NewBlakeSHA256Ed25519()

for i := 0.0; i < 10000; i++ {
Expand Down

0 comments on commit 13e391e

Please sign in to comment.