mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
24 lines
406 B
Go
24 lines
406 B
Go
|
package compiler_test
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/MontFerret/ferret/pkg/compiler"
|
||
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestString(t *testing.T) {
|
||
|
Convey("Should be possible to use multi line string", t, func() {
|
||
|
out := compiler.New().
|
||
|
MustCompile(`
|
||
|
RETURN "
|
||
|
FOO
|
||
|
BAR
|
||
|
"
|
||
|
`).
|
||
|
MustRun(context.Background())
|
||
|
|
||
|
So(string(out), ShouldEqual, `"\nFOO\nBAR\n"`)
|
||
|
})
|
||
|
}
|