completed list-type to array-type conversion and fixed common test module
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ func evalLength(ctx kern.ExprContext, opTerm *scan.Term) (v any, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
if array.IsList(childValue) {
|
||||
if array.IsArray(childValue) {
|
||||
ls, _ := childValue.(*array.ArrayType)
|
||||
v = int64(len(*ls))
|
||||
} else if str.IsString(childValue) {
|
||||
|
||||
Reference in New Issue
Block a user