We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e483a4 commit dc50d65Copy full SHA for dc50d65
set/dict_test.go
@@ -76,6 +76,22 @@ func TestExists(t *testing.T) {
76
}
77
78
79
+func TestExists_WithNewItems(t *testing.T) {
80
+ set := New(`test`, `test1`)
81
+
82
+ if !set.Exists(`test`) {
83
+ t.Errorf(`Correct existence not determined`)
84
+ }
85
86
+ if !set.Exists(`test1`) {
87
88
89
90
+ if set.Exists(`test2`) {
91
+ t.Errorf(`Correct nonexistence not determined.`)
92
93
+}
94
95
func TestLen(t *testing.T) {
96
set := New()
97
set.Add(`test`)
0 commit comments