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.

21 lines
426 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(t)
  15. _ = tc.GenerateBlocks(SetBlockchain0)
  16. _ = tc.GenerateBlocks(SetPool0)
  17. }