Skip to content

Commit

Permalink
修改表达式引擎Benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jan 20, 2019
1 parent 39f0a87 commit e04ba48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ExpressionEngineExpr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestExpressionEngineExpr_Eval(t *testing.T) {
fmt.Println(result)
}

type TestNil struct {
type TestPtr struct {
Age *int
}

Expand All @@ -39,7 +39,7 @@ func TestExpressionEngineExpr_Struct(t *testing.T) {
var evaluateParameters = make(map[string]interface{})
//var p=1
var age = 1
evaluateParameters["obj"]=&TestNil{
evaluateParameters["obj"]=&TestPtr{
Age:&age,
}
var expression = "obj.Age"
Expand Down

0 comments on commit e04ba48

Please sign in to comment.