MCPcopy
hub / github.com/canopy-network/canopy / TestMultiplication1

Function TestMultiplication1

lib/crypto/classgroup_test.go:62–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestMultiplication1(t *testing.T) {
63 t12_11_3 := NewClassGroup(big.NewInt(12), big.NewInt(11), big.NewInt(3))
64 t93_109_32 := NewClassGroup(big.NewInt(93), big.NewInt(109), big.NewInt(32))
65
66 a := t12_11_3.Multiply(t93_109_32)
67 require.Equal(t, a, NewClassGroup(big.NewInt(1), big.NewInt(1), big.NewInt(6)), "they should be equal")
68}
69
70func TestMultiplication2(t *testing.T) {
71 t12_11_3 := NewClassGroup(big.NewInt(12), big.NewInt(11), big.NewInt(3))

Callers

nothing calls this directly

Calls 3

MultiplyMethod · 0.95
NewClassGroupFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected