- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testExpr (0.14 sec)
-
src/crypto/internal/bigmod/nat_test.go
if x.Equal(expected) != 1 { t.Errorf("%+v != %+v", x, expected) } x.Add(y, m) expected = &Nat{[]uint{7}} if x.Equal(expected) != 1 { t.Errorf("%+v != %+v", x, expected) } } func TestExp(t *testing.T) { m := modulusFromBytes([]byte{13}) x := &Nat{[]uint{3}} out := &Nat{[]uint{0}} out.Exp(x, []byte{12}, m) expected := &Nat{[]uint{1}} if out.Equal(expected) != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 12 00:56:20 UTC 2024 - 11.6K bytes - Viewed (0) -
src/math/cmplx/cmath_test.go
continue } // Cosh(-z) == Cosh(z) if f := Cosh(-v.in); !cAlike(v.want, f) && !cAlike(v.in, -v.in) { t.Errorf("Cosh(%g) = %g, want %g", -v.in, f, v.want) } } } func TestExp(t *testing.T) { for i := 0; i < len(vc); i++ { if f := Exp(vc[i]); !cSoclose(exp[i], f, 1e-15) { t.Errorf("Exp(%g) = %g, want %g", vc[i], f, exp[i]) } } for _, v := range expSC {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 48.1K bytes - Viewed (0)