3
0

Cleanup expr tests

This commit is contained in:
Denis Arh
2021-03-20 14:47:33 +01:00
parent 6848c1159b
commit c80ffd0c0e
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -4,7 +4,6 @@ import (
"reflect"
"github.com/PaesslerAG/gval"
"github.com/davecgh/go-spew/spew"
)
func GenericFunctions() []gval.Language {
@@ -43,8 +42,6 @@ func isEmpty(i interface{}) bool {
return true
}
spew.Dump("A", reflect.ValueOf(i).IsZero())
switch reflect.TypeOf(i).Kind() {
case reflect.Slice, reflect.Array, reflect.Ptr, reflect.Map:
return reflect.ValueOf(i).Len() == 0
+1 -1
View File
@@ -80,7 +80,7 @@ func Example_isLeapYear() {
}
func Example_isWeekDay() {
eval(`isWeekDay(now)`, exampleTimeParams)
eval(`isWeekDay(ghd)`, exampleTimeParams)
// output:
// true