1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-15 01:25:00 +02:00

Added missed UA setting (#318)

* Added misset UA setting

* Update doc_ua.fql

* Delete ferret_embedding_basic.go
This commit is contained in:
Tim Voronov
2019-06-25 12:51:51 -04:00
committed by GitHub
parent eee801fb5b
commit 2cfd1040a9
11 changed files with 214 additions and 2 deletions

View File

@ -0,0 +1,23 @@
package strings_test
import (
"context"
"github.com/MontFerret/ferret/pkg/runtime/values"
"testing"
"github.com/MontFerret/ferret/pkg/stdlib/strings"
. "github.com/smartystreets/goconvey/convey"
)
func TestUnescapeHTML(t *testing.T) {
Convey("UnescapeHTML", t, func() {
Convey("Should unescape an string", func() {
out, err := strings.UnescapeHTML(context.Background(), values.NewString("<body><span>Foobar</span></body>"))
expected := values.NewString("<body><span>Foobar</span></body>")
So(err, ShouldBeNil)
So(out, ShouldEqual, expected)
})
})
}