- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSqr (0.67 sec)
-
src/math/big/nat_test.go
} } } } } func testSqr(t *testing.T, x nat) { got := make(nat, 2*len(x)) want := make(nat, 2*len(x)) got = got.sqr(x) want = want.mul(x, x) if got.cmp(want) != 0 { t.Errorf("basicSqr(%v), got %v, want %v", x, got, want) } } func TestSqr(t *testing.T) { for _, a := range prodNN { if a.x != nil { testSqr(t, a.x) } if a.y != nil { testSqr(t, a.y)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 09 15:29:36 UTC 2024 - 26.2K bytes - Viewed (0)