You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
689 B

  1. package txsets
  2. import (
  3. "testing"
  4. "github.com/hermeznetwork/hermez-node/common"
  5. "github.com/hermeznetwork/hermez-node/test/til"
  6. "github.com/stretchr/testify/assert"
  7. )
  8. func TestCompileSetsBase(t *testing.T) {
  9. tc := til.NewContext(0, common.RollupConstMaxL1UserTx)
  10. _, err := tc.GenerateBlocks(SetBlockchain0)
  11. assert.NoError(t, err)
  12. _, err = tc.GeneratePoolL2Txs(SetPool0)
  13. assert.NoError(t, err)
  14. }
  15. func TestCompileSetsMinimumFlow(t *testing.T) {
  16. // minimum flow
  17. tc := til.NewContext(0, common.RollupConstMaxL1UserTx)
  18. _, err := tc.GenerateBlocks(SetBlockchainMinimumFlow0)
  19. assert.NoError(t, err)
  20. _, err = tc.GeneratePoolL2Txs(SetPoolL2MinimumFlow0)
  21. assert.NoError(t, err)
  22. }