Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
foolin committed Apr 25, 2020
1 parent 9082d18 commit c72aa2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ func TestPagser_ParseDocument(t *testing.T) {
cfg := Config{
TagName: "pagser",
FuncSymbol: "->",
CastError: false,
Debug: false,
CastError: true,
Debug: true,
}
p, err := NewWithConfig(cfg)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion tokenizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ func (p *Pagser) newTag(tagValue string) (*tagTokenizer, error) {
//tag.FuncParams = strings.Split(matches[2], ",")
params, err := parseFuncParamTokens(matches[3])
if err != nil {
fmt.Printf("`%v` is invalid: %v", tagValue, err)
return nil, fmt.Errorf("tag=`%v` is invalid: %v", tagValue, err)
}
tag.FuncParams = params
Expand Down

0 comments on commit c72aa2c

Please sign in to comment.