mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
Co-authored-by: Antoine Wacheux <[email protected]> Co-authored-by: Maxence Maireaux <[email protected]> Co-authored-by: Brieuc Caillot <[email protected]>
19 lines
331 B
Go
19 lines
331 B
Go
package program_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/formancehq/ledger/internal/machine/script/compiler"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestProgram_String(t *testing.T) {
|
|
p, err := compiler.Compile(`
|
|
send [COIN 99] (
|
|
source = @world
|
|
destination = @alice
|
|
)`)
|
|
require.NoError(t, err)
|
|
_ = p.String()
|
|
}
|