summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/objx/tests_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/stretchr/objx/tests_test.go')
-rw-r--r--vendor/github.com/stretchr/objx/tests_test.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/github.com/stretchr/objx/tests_test.go b/vendor/github.com/stretchr/objx/tests_test.go
index bcc1eb03d..94a8adaf6 100644
--- a/vendor/github.com/stretchr/objx/tests_test.go
+++ b/vendor/github.com/stretchr/objx/tests_test.go
@@ -1,13 +1,14 @@
-package objx
+package objx_test
import (
- "github.com/stretchr/testify/assert"
"testing"
+
+ "github.com/stretchr/objx"
+ "github.com/stretchr/testify/assert"
)
func TestHas(t *testing.T) {
-
- m := New(TestMap)
+ m := objx.Map(TestMap)
assert.True(t, m.Has("name"))
assert.True(t, m.Has("address.state"))
@@ -19,6 +20,6 @@ func TestHas(t *testing.T) {
assert.False(t, m.Has("numbers[5]"))
m = nil
- assert.False(t, m.Has("nothing"))
+ assert.False(t, m.Has("nothing"))
}