diff --git a/decrr_test.go b/decrr_test.go index 51b01cf..a25738f 100644 --- a/decrr_test.go +++ b/decrr_test.go @@ -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) + } +}