Skip to content

Commit

Permalink
Merge pull request #1 from smoreg/master
Browse files Browse the repository at this point in the history
Add nil check for some errors
  • Loading branch information
iFaceless committed Oct 5, 2019
2 parents e32012b + 9b8df12 commit 0487f3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func TestDumpError(t *testing.T) {

var taskSchema TaskSchema
err := Dump(&taskSchema, &task, Only("Title", "SimpleUser["))
assert.NotNil(t, err)
assert.Equal(t, ErrUnmatchedBrackets.Error(), err.Error())
}

Expand Down Expand Up @@ -187,5 +188,6 @@ func TestChellBoundaryConditions(t *testing.T) {

var taskSchema TaskSchema
err := Dump(taskSchema, task)
assert.NotNil(t, err)
assert.Equal(t, "dst must be a pointer", err.Error())
}

0 comments on commit 0487f3a

Please sign in to comment.