mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 20:27:58 -05:00
* switch the go import path to linea-monorepo * address every occurence to zkevm-monorepo
22 lines
488 B
Go
22 lines
488 B
Go
package wizard_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/consensys/linea-monorepo/prover/protocol/coin"
|
|
"github.com/consensys/linea-monorepo/prover/protocol/wizard"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestRound(t *testing.T) {
|
|
define := func(b *wizard.Builder) {
|
|
_ = b.RegisterCommit("P", 16)
|
|
x := b.RegisterRandomCoin("X", coin.Field)
|
|
require.Equal(t, 1, x.Round)
|
|
y := b.RegisterRandomCoin("Y", coin.Field)
|
|
require.Equal(t, 1, y.Round)
|
|
}
|
|
|
|
wizard.Compile(define)
|
|
}
|