@@ -18,18 +18,18 @@ func TestContains_Simple(t *testing.T) {
1818}
1919
2020func TestContains_Map_Left (t * testing.T ) {
21- a := map [string ]interface {} {
21+ a := map [string ]any {
2222 "a" : "a" ,
2323 "b" : "b" ,
24- "c" : map [string ]interface {} {
24+ "c" : map [string ]any {
2525 "f" : []string {"a" , "b" , "c" },
2626 "d" : "d" ,
2727 "e" : []int {1 , 2 , 3 },
2828 },
2929 }
3030
31- b := map [string ]interface {} {
32- "c" : map [string ]interface {} {
31+ b := map [string ]any {
32+ "c" : map [string ]any {
3333 "d" : "d" ,
3434 "e" : []int {1 , 2 , 3 },
3535 "f" : []string {"a" , "b" , "c" },
@@ -50,18 +50,18 @@ func TestContains_Map_Left(t *testing.T) {
5050}
5151
5252func TestContains_Map_Right (t * testing.T ) {
53- a := map [string ]interface {} {
53+ a := map [string ]any {
5454 "a" : "a" ,
5555 "b" : "b" ,
56- "c" : map [string ]interface {} {
56+ "c" : map [string ]any {
5757 "f" : []string {"a" , "b" , "c" },
5858 "d" : "d" ,
5959 "e" : []int {1 , 2 , 3 },
6060 },
6161 }
6262
63- b := map [string ]interface {} {
64- "c" : map [string ]interface {} {
63+ b := map [string ]any {
64+ "c" : map [string ]any {
6565 "d" : "d" ,
6666 "e" : []int {1 , 2 , 3 },
6767 "f" : []string {"a" , "b" , "c" },
@@ -87,10 +87,10 @@ func TestContains_Slices_Left(t *testing.T) {
8787 require .False (t , deeply .Contains ([]int {1 , 3 , 2 }, []int {1 , 2 , 3 }))
8888 require .False (t , deeply .Contains ([]int {1 , 2 }, []int {1 , 2 , 3 }))
8989
90- require .True (t , deeply .Contains ([]interface {}{ 1 , 2 , 3 }, []interface {} {1 , 2 , 3 }))
90+ require .True (t , deeply .Contains ([]any { 1 , 2 , 3 }, []any {1 , 2 , 3 }))
9191
92- require .False (t , deeply .Contains ([]interface {}{ 1 , 3 , 2 }, []interface {} {1 , 2 , 3 }))
93- require .False (t , deeply .Contains ([]interface {}{ 1 , 2 }, []interface {} {1 , 2 , 3 }))
92+ require .False (t , deeply .Contains ([]any { 1 , 3 , 2 }, []any {1 , 2 , 3 }))
93+ require .False (t , deeply .Contains ([]any { 1 , 2 }, []any {1 , 2 , 3 }))
9494}
9595
9696func TestContains_Slices_Right (t * testing.T ) {
@@ -99,33 +99,33 @@ func TestContains_Slices_Right(t *testing.T) {
9999 require .False (t , deeply .Contains ([]int {1 , 2 , 3 }, []int {1 , 3 , 2 }))
100100 require .False (t , deeply .Contains ([]int {1 , 2 , 3 }, []int {1 , 2 }))
101101
102- require .True (t , deeply .Contains ([]interface {}{ 1 , 2 , 3 }, []interface {} {1 , 2 , 3 }))
102+ require .True (t , deeply .Contains ([]any { 1 , 2 , 3 }, []any {1 , 2 , 3 }))
103103
104- require .False (t , deeply .Contains ([]interface {}{ 1 , 2 , 3 }, []interface {} {1 , 3 , 2 }))
105- require .False (t , deeply .Contains ([]interface {}{ 1 , 2 , 3 }, []interface {} {1 , 2 }))
104+ require .False (t , deeply .Contains ([]any { 1 , 2 , 3 }, []any {1 , 3 , 2 }))
105+ require .False (t , deeply .Contains ([]any { 1 , 2 , 3 }, []any {1 , 2 }))
106106}
107107
108108func TestContains_MapStable (t * testing.T ) {
109- a := map [string ][]interface {} {
109+ a := map [string ][]any {
110110 "items" : {
111- map [string ]interface {} {
111+ map [string ]any {
112112 "high" : json .Number ("72057594037927936" ),
113113 "low" : json .Number ("18446744073709551615" ),
114114 },
115- map [string ]interface {} {
115+ map [string ]any {
116116 "low" : json .Number ("2" ),
117117 "high" : json .Number ("1" ),
118118 },
119119 },
120120 }
121121
122- b := map [string ][]interface {} {
122+ b := map [string ][]any {
123123 "items" : {
124- map [string ]interface {} {
124+ map [string ]any {
125125 "low" : json .Number ("18446744073709551615" ),
126126 "high" : json .Number ("72057594037927936" ),
127127 },
128- map [string ]interface {} {
128+ map [string ]any {
129129 "high" : json .Number ("1" ),
130130 "low" : json .Number ("2" ),
131131 },
@@ -160,11 +160,11 @@ func TestContains_Slices_OrderIgnore(t *testing.T) {
160160
161161 require .True (t , deeply .ContainsIgnoreArrayOrder ([]int {1 , 2 , 3 }, []int {1 , 2 , 3 }))
162162 require .True (t , deeply .ContainsIgnoreArrayOrder ([]int {1 , 2 , 3 }, []int {1 , 3 , 2 }))
163- require .True (t , deeply .ContainsIgnoreArrayOrder ([]interface {}{ 1 , 2 , 3 }, []interface {} {1 , 2 , 3 }))
164- require .True (t , deeply .ContainsIgnoreArrayOrder ([]interface {}{ 1 , 2 , 3 }, []interface {} {1 , 3 , 2 }))
163+ require .True (t , deeply .ContainsIgnoreArrayOrder ([]any { 1 , 2 , 3 }, []any {1 , 2 , 3 }))
164+ require .True (t , deeply .ContainsIgnoreArrayOrder ([]any { 1 , 2 , 3 }, []any {1 , 3 , 2 }))
165165
166166 require .False (t , deeply .ContainsIgnoreArrayOrder ([]int {1 , 2 , 3 }, []int {1 , 2 }))
167- require .False (t , deeply .ContainsIgnoreArrayOrder ([]interface {}{ 1 , 2 , 3 }, []interface {} {1 , 2 }))
167+ require .False (t , deeply .ContainsIgnoreArrayOrder ([]any { 1 , 2 , 3 }, []any {1 , 2 }))
168168}
169169
170170func TestContains_Boundary (t * testing.T ) {
@@ -174,35 +174,35 @@ func TestContains_Boundary(t *testing.T) {
174174
175175 require .True (t , deeply .Contains (nil , nil ))
176176
177- require .False (t , deeply .Contains (map [string ]interface {} {
177+ require .False (t , deeply .Contains (map [string ]any {
178178 "field1" : "hello" ,
179- }, map [string ]interface {} {
179+ }, map [string ]any {
180180 "field2" : "hello field1" ,
181181 }))
182182
183- require .True (t , deeply .Contains (map [string ]interface {} {
183+ require .True (t , deeply .Contains (map [string ]any {
184184 "name" : "Afra Gokce" ,
185185 "age" : 1 ,
186186 "girl" : true ,
187187 "null" : nil ,
188- "greetings" : map [string ]interface {} {
188+ "greetings" : map [string ]any {
189189 "hola" : "mundo" ,
190190 "merhaba" : "dunya" ,
191191 },
192- "cities" : []interface {} {
192+ "cities" : []any {
193193 "Istanbul" ,
194194 "Jakarta" ,
195195 },
196- }, map [string ]interface {} {
196+ }, map [string ]any {
197197 "name" : "Afra Gokce" ,
198198 "age" : 1 ,
199199 "girl" : true ,
200200 "null" : nil ,
201- "greetings" : map [string ]interface {} {
201+ "greetings" : map [string ]any {
202202 "hola" : "mundo" ,
203203 "merhaba" : "dunya" ,
204204 },
205- "cities" : []interface {} {
205+ "cities" : []any {
206206 "Istanbul" ,
207207 "Jakarta" ,
208208 },
0 commit comments