mirror of
https://github.com/MontFerret/ferret.git
synced 2025-06-23 00:28:10 +02:00
23
pkg/compiler/compiler_str_test.go
Normal file
23
pkg/compiler/compiler_str_test.go
Normal file
@ -0,0 +1,23 @@
|
||||
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"`)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user