1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-06-23 00:28:10 +02:00

#117 Added support for multiline strings (#129)

This commit is contained in:
Tim Voronov
2018-10-15 18:50:55 -04:00
committed by GitHub
parent 18b76be3fc
commit cf70088fd8
20 changed files with 2238 additions and 2128 deletions

View 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"`)
})
}