mirror of https://github.com/aldy505/decrr.git
test: nil value
This commit is contained in:
parent
198cc25b37
commit
23c8abeb3b
|
@ -26,3 +26,11 @@ func TestWrap(t *testing.T) {
|
|||
t.Error("different than expected:", w.Error(), "\nexpected:", expected)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNilValue(t *testing.T) {
|
||||
w := decrr.Wrap(nil)
|
||||
|
||||
if w != nil {
|
||||
t.Error("should be nil, got:", w)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue