mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-13 01:20:35 +02:00
New type system (#232)
* New type system * Fixed dot notation for HTML elements
This commit is contained in:
@ -2,6 +2,7 @@ package values_test
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/MontFerret/ferret/pkg/runtime/values/types"
|
||||
"testing"
|
||||
|
||||
"github.com/MontFerret/ferret/pkg/runtime/core"
|
||||
@ -56,7 +57,7 @@ func TestArray(t *testing.T) {
|
||||
Convey("Should return type", func() {
|
||||
arr := values.NewArray(1)
|
||||
|
||||
So(arr.Type(), ShouldEqual, core.ArrayType)
|
||||
So(arr.Type().Equals(types.Array), ShouldBeTrue)
|
||||
})
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user