- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestModAdd (0.13 sec)
-
src/crypto/internal/bigmod/nat_test.go
if x.Equal(expected) != 1 { t.Errorf("%+v != %+v", x, expected) } x.Sub(y, m) expected = &Nat{[]uint{5}} if x.Equal(expected) != 1 { t.Errorf("%+v != %+v", x, expected) } } func TestModAdd(t *testing.T) { m := modulusFromBytes([]byte{13}) x := &Nat{[]uint{6}} y := &Nat{[]uint{7}} x.Add(y, m) expected := &Nat{[]uint{0}} if x.Equal(expected) != 1 { t.Errorf("%+v != %+v", x, expected)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 12 00:56:20 UTC 2024 - 11.6K bytes - Viewed (0)