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

Function TestMultiplication3

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

Source from the content-addressed store, hash-verified

81}
82
83func TestMultiplication3(t *testing.T) {
84 t12_11_3 := NewClassGroup(big.NewInt(12), big.NewInt(11), big.NewInt(3))
85 t93_109_32 := NewClassGroup(big.NewInt(93), big.NewInt(109), big.NewInt(32))
86
87 a := t12_11_3.Multiply(t93_109_32)
88 require.Equal(t, a, NewClassGroup(big.NewInt(1), big.NewInt(1), big.NewInt(6)), "they should be equal")
89}
90
91func TestMultiplication4(t *testing.T) {
92 x := NewClassGroup(big.NewInt(-565721958), big.NewInt(-740), big.NewInt(4486780496))

Callers

nothing calls this directly

Calls 3

MultiplyMethod · 0.95
NewClassGroupFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected