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.

23 lines
475 B

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