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.

24 lines
534 B

  1. package til
  2. import (
  3. "strings"
  4. "testing"
  5. "github.com/hermeznetwork/hermez-node/eth"
  6. "github.com/stretchr/testify/assert"
  7. )
  8. func TestCompileSets(t *testing.T) {
  9. parser := newParser(strings.NewReader(SetBlockchain0))
  10. _, err := parser.parse()
  11. assert.Nil(t, err)
  12. parser = newParser(strings.NewReader(SetPool0))
  13. _, err = parser.parse()
  14. assert.Nil(t, err)
  15. tc := NewContext(eth.RollupConstMaxL1UserTx)
  16. _, err = tc.GenerateBlocks(SetBlockchain0)
  17. assert.Nil(t, err)
  18. _, err = tc.GenerateBlocks(SetPool0)
  19. assert.Nil(t, err)
  20. }