github.com/sandwich-go/boost@v1.3.29/xmap/equal_test.go (about) 1 // Code generated by tools. DO NOT EDIT. 2 package xmap 3 4 import ( 5 . "github.com/smartystreets/goconvey/convey" 6 "strconv" 7 "testing" 8 ) 9 10 func TestEqualMap(t *testing.T) { 11 Convey("EqualFloat32Float32Map", t, func() { 12 So(EqualFloat32Float32Map(nil, nil), ShouldBeTrue) 13 var a, b = make(map[float32]float32), make(map[float32]float32) 14 So(EqualFloat32Float32Map(a, nil), ShouldBeFalse) 15 So(EqualFloat32Float32Map(nil, a), ShouldBeFalse) 16 So(EqualFloat32Float32Map(a, b), ShouldBeTrue) 17 18 var key float32 19 var value float32 20 for i := 0; i < 100; i++ { 21 key = float32(i) 22 value = float32(i) 23 a[key] = value 24 b[key] = value 25 } 26 So(EqualFloat32Float32Map(a, b), ShouldBeTrue) 27 delete(a, key) 28 So(EqualFloat32Float32Map(a, b), ShouldBeFalse) 29 }) 30 31 Convey("EqualFloat32Float64Map", t, func() { 32 So(EqualFloat32Float64Map(nil, nil), ShouldBeTrue) 33 var a, b = make(map[float32]float64), make(map[float32]float64) 34 So(EqualFloat32Float64Map(a, nil), ShouldBeFalse) 35 So(EqualFloat32Float64Map(nil, a), ShouldBeFalse) 36 So(EqualFloat32Float64Map(a, b), ShouldBeTrue) 37 38 var key float32 39 var value float64 40 for i := 0; i < 100; i++ { 41 key = float32(i) 42 value = float64(i) 43 a[key] = value 44 b[key] = value 45 } 46 So(EqualFloat32Float64Map(a, b), ShouldBeTrue) 47 delete(a, key) 48 So(EqualFloat32Float64Map(a, b), ShouldBeFalse) 49 }) 50 51 Convey("EqualFloat32IntMap", t, func() { 52 So(EqualFloat32IntMap(nil, nil), ShouldBeTrue) 53 var a, b = make(map[float32]int), make(map[float32]int) 54 So(EqualFloat32IntMap(a, nil), ShouldBeFalse) 55 So(EqualFloat32IntMap(nil, a), ShouldBeFalse) 56 So(EqualFloat32IntMap(a, b), ShouldBeTrue) 57 58 var key float32 59 var value int 60 for i := 0; i < 100; i++ { 61 key = float32(i) 62 value = i 63 a[key] = value 64 b[key] = value 65 } 66 So(EqualFloat32IntMap(a, b), ShouldBeTrue) 67 delete(a, key) 68 So(EqualFloat32IntMap(a, b), ShouldBeFalse) 69 }) 70 71 Convey("EqualFloat32Int16Map", t, func() { 72 So(EqualFloat32Int16Map(nil, nil), ShouldBeTrue) 73 var a, b = make(map[float32]int16), make(map[float32]int16) 74 So(EqualFloat32Int16Map(a, nil), ShouldBeFalse) 75 So(EqualFloat32Int16Map(nil, a), ShouldBeFalse) 76 So(EqualFloat32Int16Map(a, b), ShouldBeTrue) 77 78 var key float32 79 var value int16 80 for i := 0; i < 100; i++ { 81 key = float32(i) 82 value = int16(i) 83 a[key] = value 84 b[key] = value 85 } 86 So(EqualFloat32Int16Map(a, b), ShouldBeTrue) 87 delete(a, key) 88 So(EqualFloat32Int16Map(a, b), ShouldBeFalse) 89 }) 90 91 Convey("EqualFloat32Int32Map", t, func() { 92 So(EqualFloat32Int32Map(nil, nil), ShouldBeTrue) 93 var a, b = make(map[float32]int32), make(map[float32]int32) 94 So(EqualFloat32Int32Map(a, nil), ShouldBeFalse) 95 So(EqualFloat32Int32Map(nil, a), ShouldBeFalse) 96 So(EqualFloat32Int32Map(a, b), ShouldBeTrue) 97 98 var key float32 99 var value int32 100 for i := 0; i < 100; i++ { 101 key = float32(i) 102 value = int32(i) 103 a[key] = value 104 b[key] = value 105 } 106 So(EqualFloat32Int32Map(a, b), ShouldBeTrue) 107 delete(a, key) 108 So(EqualFloat32Int32Map(a, b), ShouldBeFalse) 109 }) 110 111 Convey("EqualFloat32Int64Map", t, func() { 112 So(EqualFloat32Int64Map(nil, nil), ShouldBeTrue) 113 var a, b = make(map[float32]int64), make(map[float32]int64) 114 So(EqualFloat32Int64Map(a, nil), ShouldBeFalse) 115 So(EqualFloat32Int64Map(nil, a), ShouldBeFalse) 116 So(EqualFloat32Int64Map(a, b), ShouldBeTrue) 117 118 var key float32 119 var value int64 120 for i := 0; i < 100; i++ { 121 key = float32(i) 122 value = int64(i) 123 a[key] = value 124 b[key] = value 125 } 126 So(EqualFloat32Int64Map(a, b), ShouldBeTrue) 127 delete(a, key) 128 So(EqualFloat32Int64Map(a, b), ShouldBeFalse) 129 }) 130 131 Convey("EqualFloat32Int8Map", t, func() { 132 So(EqualFloat32Int8Map(nil, nil), ShouldBeTrue) 133 var a, b = make(map[float32]int8), make(map[float32]int8) 134 So(EqualFloat32Int8Map(a, nil), ShouldBeFalse) 135 So(EqualFloat32Int8Map(nil, a), ShouldBeFalse) 136 So(EqualFloat32Int8Map(a, b), ShouldBeTrue) 137 138 var key float32 139 var value int8 140 for i := 0; i < 100; i++ { 141 key = float32(i) 142 value = int8(i) 143 a[key] = value 144 b[key] = value 145 } 146 So(EqualFloat32Int8Map(a, b), ShouldBeTrue) 147 delete(a, key) 148 So(EqualFloat32Int8Map(a, b), ShouldBeFalse) 149 }) 150 151 Convey("EqualFloat32StringMap", t, func() { 152 So(EqualFloat32StringMap(nil, nil), ShouldBeTrue) 153 var a, b = make(map[float32]string), make(map[float32]string) 154 So(EqualFloat32StringMap(a, nil), ShouldBeFalse) 155 So(EqualFloat32StringMap(nil, a), ShouldBeFalse) 156 So(EqualFloat32StringMap(a, b), ShouldBeTrue) 157 158 var key float32 159 var value string 160 for i := 0; i < 100; i++ { 161 key = float32(i) 162 value = strconv.FormatInt(int64(i), 10) 163 a[key] = value 164 b[key] = value 165 } 166 So(EqualFloat32StringMap(a, b), ShouldBeTrue) 167 delete(a, key) 168 So(EqualFloat32StringMap(a, b), ShouldBeFalse) 169 }) 170 171 Convey("EqualFloat32UintMap", t, func() { 172 So(EqualFloat32UintMap(nil, nil), ShouldBeTrue) 173 var a, b = make(map[float32]uint), make(map[float32]uint) 174 So(EqualFloat32UintMap(a, nil), ShouldBeFalse) 175 So(EqualFloat32UintMap(nil, a), ShouldBeFalse) 176 So(EqualFloat32UintMap(a, b), ShouldBeTrue) 177 178 var key float32 179 var value uint 180 for i := 0; i < 100; i++ { 181 key = float32(i) 182 value = uint(i) 183 a[key] = value 184 b[key] = value 185 } 186 So(EqualFloat32UintMap(a, b), ShouldBeTrue) 187 delete(a, key) 188 So(EqualFloat32UintMap(a, b), ShouldBeFalse) 189 }) 190 191 Convey("EqualFloat32Uint16Map", t, func() { 192 So(EqualFloat32Uint16Map(nil, nil), ShouldBeTrue) 193 var a, b = make(map[float32]uint16), make(map[float32]uint16) 194 So(EqualFloat32Uint16Map(a, nil), ShouldBeFalse) 195 So(EqualFloat32Uint16Map(nil, a), ShouldBeFalse) 196 So(EqualFloat32Uint16Map(a, b), ShouldBeTrue) 197 198 var key float32 199 var value uint16 200 for i := 0; i < 100; i++ { 201 key = float32(i) 202 value = uint16(i) 203 a[key] = value 204 b[key] = value 205 } 206 So(EqualFloat32Uint16Map(a, b), ShouldBeTrue) 207 delete(a, key) 208 So(EqualFloat32Uint16Map(a, b), ShouldBeFalse) 209 }) 210 211 Convey("EqualFloat32Uint32Map", t, func() { 212 So(EqualFloat32Uint32Map(nil, nil), ShouldBeTrue) 213 var a, b = make(map[float32]uint32), make(map[float32]uint32) 214 So(EqualFloat32Uint32Map(a, nil), ShouldBeFalse) 215 So(EqualFloat32Uint32Map(nil, a), ShouldBeFalse) 216 So(EqualFloat32Uint32Map(a, b), ShouldBeTrue) 217 218 var key float32 219 var value uint32 220 for i := 0; i < 100; i++ { 221 key = float32(i) 222 value = uint32(i) 223 a[key] = value 224 b[key] = value 225 } 226 So(EqualFloat32Uint32Map(a, b), ShouldBeTrue) 227 delete(a, key) 228 So(EqualFloat32Uint32Map(a, b), ShouldBeFalse) 229 }) 230 231 Convey("EqualFloat32Uint64Map", t, func() { 232 So(EqualFloat32Uint64Map(nil, nil), ShouldBeTrue) 233 var a, b = make(map[float32]uint64), make(map[float32]uint64) 234 So(EqualFloat32Uint64Map(a, nil), ShouldBeFalse) 235 So(EqualFloat32Uint64Map(nil, a), ShouldBeFalse) 236 So(EqualFloat32Uint64Map(a, b), ShouldBeTrue) 237 238 var key float32 239 var value uint64 240 for i := 0; i < 100; i++ { 241 key = float32(i) 242 value = uint64(i) 243 a[key] = value 244 b[key] = value 245 } 246 So(EqualFloat32Uint64Map(a, b), ShouldBeTrue) 247 delete(a, key) 248 So(EqualFloat32Uint64Map(a, b), ShouldBeFalse) 249 }) 250 251 Convey("EqualFloat32Uint8Map", t, func() { 252 So(EqualFloat32Uint8Map(nil, nil), ShouldBeTrue) 253 var a, b = make(map[float32]uint8), make(map[float32]uint8) 254 So(EqualFloat32Uint8Map(a, nil), ShouldBeFalse) 255 So(EqualFloat32Uint8Map(nil, a), ShouldBeFalse) 256 So(EqualFloat32Uint8Map(a, b), ShouldBeTrue) 257 258 var key float32 259 var value uint8 260 for i := 0; i < 100; i++ { 261 key = float32(i) 262 value = uint8(i) 263 a[key] = value 264 b[key] = value 265 } 266 So(EqualFloat32Uint8Map(a, b), ShouldBeTrue) 267 delete(a, key) 268 So(EqualFloat32Uint8Map(a, b), ShouldBeFalse) 269 }) 270 271 Convey("EqualFloat64Float32Map", t, func() { 272 So(EqualFloat64Float32Map(nil, nil), ShouldBeTrue) 273 var a, b = make(map[float64]float32), make(map[float64]float32) 274 So(EqualFloat64Float32Map(a, nil), ShouldBeFalse) 275 So(EqualFloat64Float32Map(nil, a), ShouldBeFalse) 276 So(EqualFloat64Float32Map(a, b), ShouldBeTrue) 277 278 var key float64 279 var value float32 280 for i := 0; i < 100; i++ { 281 key = float64(i) 282 value = float32(i) 283 a[key] = value 284 b[key] = value 285 } 286 So(EqualFloat64Float32Map(a, b), ShouldBeTrue) 287 delete(a, key) 288 So(EqualFloat64Float32Map(a, b), ShouldBeFalse) 289 }) 290 291 Convey("EqualFloat64Float64Map", t, func() { 292 So(EqualFloat64Float64Map(nil, nil), ShouldBeTrue) 293 var a, b = make(map[float64]float64), make(map[float64]float64) 294 So(EqualFloat64Float64Map(a, nil), ShouldBeFalse) 295 So(EqualFloat64Float64Map(nil, a), ShouldBeFalse) 296 So(EqualFloat64Float64Map(a, b), ShouldBeTrue) 297 298 var key float64 299 var value float64 300 for i := 0; i < 100; i++ { 301 key = float64(i) 302 value = float64(i) 303 a[key] = value 304 b[key] = value 305 } 306 So(EqualFloat64Float64Map(a, b), ShouldBeTrue) 307 delete(a, key) 308 So(EqualFloat64Float64Map(a, b), ShouldBeFalse) 309 }) 310 311 Convey("EqualFloat64IntMap", t, func() { 312 So(EqualFloat64IntMap(nil, nil), ShouldBeTrue) 313 var a, b = make(map[float64]int), make(map[float64]int) 314 So(EqualFloat64IntMap(a, nil), ShouldBeFalse) 315 So(EqualFloat64IntMap(nil, a), ShouldBeFalse) 316 So(EqualFloat64IntMap(a, b), ShouldBeTrue) 317 318 var key float64 319 var value int 320 for i := 0; i < 100; i++ { 321 key = float64(i) 322 value = i 323 a[key] = value 324 b[key] = value 325 } 326 So(EqualFloat64IntMap(a, b), ShouldBeTrue) 327 delete(a, key) 328 So(EqualFloat64IntMap(a, b), ShouldBeFalse) 329 }) 330 331 Convey("EqualFloat64Int16Map", t, func() { 332 So(EqualFloat64Int16Map(nil, nil), ShouldBeTrue) 333 var a, b = make(map[float64]int16), make(map[float64]int16) 334 So(EqualFloat64Int16Map(a, nil), ShouldBeFalse) 335 So(EqualFloat64Int16Map(nil, a), ShouldBeFalse) 336 So(EqualFloat64Int16Map(a, b), ShouldBeTrue) 337 338 var key float64 339 var value int16 340 for i := 0; i < 100; i++ { 341 key = float64(i) 342 value = int16(i) 343 a[key] = value 344 b[key] = value 345 } 346 So(EqualFloat64Int16Map(a, b), ShouldBeTrue) 347 delete(a, key) 348 So(EqualFloat64Int16Map(a, b), ShouldBeFalse) 349 }) 350 351 Convey("EqualFloat64Int32Map", t, func() { 352 So(EqualFloat64Int32Map(nil, nil), ShouldBeTrue) 353 var a, b = make(map[float64]int32), make(map[float64]int32) 354 So(EqualFloat64Int32Map(a, nil), ShouldBeFalse) 355 So(EqualFloat64Int32Map(nil, a), ShouldBeFalse) 356 So(EqualFloat64Int32Map(a, b), ShouldBeTrue) 357 358 var key float64 359 var value int32 360 for i := 0; i < 100; i++ { 361 key = float64(i) 362 value = int32(i) 363 a[key] = value 364 b[key] = value 365 } 366 So(EqualFloat64Int32Map(a, b), ShouldBeTrue) 367 delete(a, key) 368 So(EqualFloat64Int32Map(a, b), ShouldBeFalse) 369 }) 370 371 Convey("EqualFloat64Int64Map", t, func() { 372 So(EqualFloat64Int64Map(nil, nil), ShouldBeTrue) 373 var a, b = make(map[float64]int64), make(map[float64]int64) 374 So(EqualFloat64Int64Map(a, nil), ShouldBeFalse) 375 So(EqualFloat64Int64Map(nil, a), ShouldBeFalse) 376 So(EqualFloat64Int64Map(a, b), ShouldBeTrue) 377 378 var key float64 379 var value int64 380 for i := 0; i < 100; i++ { 381 key = float64(i) 382 value = int64(i) 383 a[key] = value 384 b[key] = value 385 } 386 So(EqualFloat64Int64Map(a, b), ShouldBeTrue) 387 delete(a, key) 388 So(EqualFloat64Int64Map(a, b), ShouldBeFalse) 389 }) 390 391 Convey("EqualFloat64Int8Map", t, func() { 392 So(EqualFloat64Int8Map(nil, nil), ShouldBeTrue) 393 var a, b = make(map[float64]int8), make(map[float64]int8) 394 So(EqualFloat64Int8Map(a, nil), ShouldBeFalse) 395 So(EqualFloat64Int8Map(nil, a), ShouldBeFalse) 396 So(EqualFloat64Int8Map(a, b), ShouldBeTrue) 397 398 var key float64 399 var value int8 400 for i := 0; i < 100; i++ { 401 key = float64(i) 402 value = int8(i) 403 a[key] = value 404 b[key] = value 405 } 406 So(EqualFloat64Int8Map(a, b), ShouldBeTrue) 407 delete(a, key) 408 So(EqualFloat64Int8Map(a, b), ShouldBeFalse) 409 }) 410 411 Convey("EqualFloat64StringMap", t, func() { 412 So(EqualFloat64StringMap(nil, nil), ShouldBeTrue) 413 var a, b = make(map[float64]string), make(map[float64]string) 414 So(EqualFloat64StringMap(a, nil), ShouldBeFalse) 415 So(EqualFloat64StringMap(nil, a), ShouldBeFalse) 416 So(EqualFloat64StringMap(a, b), ShouldBeTrue) 417 418 var key float64 419 var value string 420 for i := 0; i < 100; i++ { 421 key = float64(i) 422 value = strconv.FormatInt(int64(i), 10) 423 a[key] = value 424 b[key] = value 425 } 426 So(EqualFloat64StringMap(a, b), ShouldBeTrue) 427 delete(a, key) 428 So(EqualFloat64StringMap(a, b), ShouldBeFalse) 429 }) 430 431 Convey("EqualFloat64UintMap", t, func() { 432 So(EqualFloat64UintMap(nil, nil), ShouldBeTrue) 433 var a, b = make(map[float64]uint), make(map[float64]uint) 434 So(EqualFloat64UintMap(a, nil), ShouldBeFalse) 435 So(EqualFloat64UintMap(nil, a), ShouldBeFalse) 436 So(EqualFloat64UintMap(a, b), ShouldBeTrue) 437 438 var key float64 439 var value uint 440 for i := 0; i < 100; i++ { 441 key = float64(i) 442 value = uint(i) 443 a[key] = value 444 b[key] = value 445 } 446 So(EqualFloat64UintMap(a, b), ShouldBeTrue) 447 delete(a, key) 448 So(EqualFloat64UintMap(a, b), ShouldBeFalse) 449 }) 450 451 Convey("EqualFloat64Uint16Map", t, func() { 452 So(EqualFloat64Uint16Map(nil, nil), ShouldBeTrue) 453 var a, b = make(map[float64]uint16), make(map[float64]uint16) 454 So(EqualFloat64Uint16Map(a, nil), ShouldBeFalse) 455 So(EqualFloat64Uint16Map(nil, a), ShouldBeFalse) 456 So(EqualFloat64Uint16Map(a, b), ShouldBeTrue) 457 458 var key float64 459 var value uint16 460 for i := 0; i < 100; i++ { 461 key = float64(i) 462 value = uint16(i) 463 a[key] = value 464 b[key] = value 465 } 466 So(EqualFloat64Uint16Map(a, b), ShouldBeTrue) 467 delete(a, key) 468 So(EqualFloat64Uint16Map(a, b), ShouldBeFalse) 469 }) 470 471 Convey("EqualFloat64Uint32Map", t, func() { 472 So(EqualFloat64Uint32Map(nil, nil), ShouldBeTrue) 473 var a, b = make(map[float64]uint32), make(map[float64]uint32) 474 So(EqualFloat64Uint32Map(a, nil), ShouldBeFalse) 475 So(EqualFloat64Uint32Map(nil, a), ShouldBeFalse) 476 So(EqualFloat64Uint32Map(a, b), ShouldBeTrue) 477 478 var key float64 479 var value uint32 480 for i := 0; i < 100; i++ { 481 key = float64(i) 482 value = uint32(i) 483 a[key] = value 484 b[key] = value 485 } 486 So(EqualFloat64Uint32Map(a, b), ShouldBeTrue) 487 delete(a, key) 488 So(EqualFloat64Uint32Map(a, b), ShouldBeFalse) 489 }) 490 491 Convey("EqualFloat64Uint64Map", t, func() { 492 So(EqualFloat64Uint64Map(nil, nil), ShouldBeTrue) 493 var a, b = make(map[float64]uint64), make(map[float64]uint64) 494 So(EqualFloat64Uint64Map(a, nil), ShouldBeFalse) 495 So(EqualFloat64Uint64Map(nil, a), ShouldBeFalse) 496 So(EqualFloat64Uint64Map(a, b), ShouldBeTrue) 497 498 var key float64 499 var value uint64 500 for i := 0; i < 100; i++ { 501 key = float64(i) 502 value = uint64(i) 503 a[key] = value 504 b[key] = value 505 } 506 So(EqualFloat64Uint64Map(a, b), ShouldBeTrue) 507 delete(a, key) 508 So(EqualFloat64Uint64Map(a, b), ShouldBeFalse) 509 }) 510 511 Convey("EqualFloat64Uint8Map", t, func() { 512 So(EqualFloat64Uint8Map(nil, nil), ShouldBeTrue) 513 var a, b = make(map[float64]uint8), make(map[float64]uint8) 514 So(EqualFloat64Uint8Map(a, nil), ShouldBeFalse) 515 So(EqualFloat64Uint8Map(nil, a), ShouldBeFalse) 516 So(EqualFloat64Uint8Map(a, b), ShouldBeTrue) 517 518 var key float64 519 var value uint8 520 for i := 0; i < 100; i++ { 521 key = float64(i) 522 value = uint8(i) 523 a[key] = value 524 b[key] = value 525 } 526 So(EqualFloat64Uint8Map(a, b), ShouldBeTrue) 527 delete(a, key) 528 So(EqualFloat64Uint8Map(a, b), ShouldBeFalse) 529 }) 530 531 Convey("EqualIntFloat32Map", t, func() { 532 So(EqualIntFloat32Map(nil, nil), ShouldBeTrue) 533 var a, b = make(map[int]float32), make(map[int]float32) 534 So(EqualIntFloat32Map(a, nil), ShouldBeFalse) 535 So(EqualIntFloat32Map(nil, a), ShouldBeFalse) 536 So(EqualIntFloat32Map(a, b), ShouldBeTrue) 537 538 var key int 539 var value float32 540 for i := 0; i < 100; i++ { 541 key = i 542 value = float32(i) 543 a[key] = value 544 b[key] = value 545 } 546 So(EqualIntFloat32Map(a, b), ShouldBeTrue) 547 delete(a, key) 548 So(EqualIntFloat32Map(a, b), ShouldBeFalse) 549 }) 550 551 Convey("EqualIntFloat64Map", t, func() { 552 So(EqualIntFloat64Map(nil, nil), ShouldBeTrue) 553 var a, b = make(map[int]float64), make(map[int]float64) 554 So(EqualIntFloat64Map(a, nil), ShouldBeFalse) 555 So(EqualIntFloat64Map(nil, a), ShouldBeFalse) 556 So(EqualIntFloat64Map(a, b), ShouldBeTrue) 557 558 var key int 559 var value float64 560 for i := 0; i < 100; i++ { 561 key = i 562 value = float64(i) 563 a[key] = value 564 b[key] = value 565 } 566 So(EqualIntFloat64Map(a, b), ShouldBeTrue) 567 delete(a, key) 568 So(EqualIntFloat64Map(a, b), ShouldBeFalse) 569 }) 570 571 Convey("EqualIntIntMap", t, func() { 572 So(EqualIntIntMap(nil, nil), ShouldBeTrue) 573 var a, b = make(map[int]int), make(map[int]int) 574 So(EqualIntIntMap(a, nil), ShouldBeFalse) 575 So(EqualIntIntMap(nil, a), ShouldBeFalse) 576 So(EqualIntIntMap(a, b), ShouldBeTrue) 577 578 var key int 579 var value int 580 for i := 0; i < 100; i++ { 581 key = i 582 value = i 583 a[key] = value 584 b[key] = value 585 } 586 So(EqualIntIntMap(a, b), ShouldBeTrue) 587 delete(a, key) 588 So(EqualIntIntMap(a, b), ShouldBeFalse) 589 }) 590 591 Convey("EqualIntInt16Map", t, func() { 592 So(EqualIntInt16Map(nil, nil), ShouldBeTrue) 593 var a, b = make(map[int]int16), make(map[int]int16) 594 So(EqualIntInt16Map(a, nil), ShouldBeFalse) 595 So(EqualIntInt16Map(nil, a), ShouldBeFalse) 596 So(EqualIntInt16Map(a, b), ShouldBeTrue) 597 598 var key int 599 var value int16 600 for i := 0; i < 100; i++ { 601 key = i 602 value = int16(i) 603 a[key] = value 604 b[key] = value 605 } 606 So(EqualIntInt16Map(a, b), ShouldBeTrue) 607 delete(a, key) 608 So(EqualIntInt16Map(a, b), ShouldBeFalse) 609 }) 610 611 Convey("EqualIntInt32Map", t, func() { 612 So(EqualIntInt32Map(nil, nil), ShouldBeTrue) 613 var a, b = make(map[int]int32), make(map[int]int32) 614 So(EqualIntInt32Map(a, nil), ShouldBeFalse) 615 So(EqualIntInt32Map(nil, a), ShouldBeFalse) 616 So(EqualIntInt32Map(a, b), ShouldBeTrue) 617 618 var key int 619 var value int32 620 for i := 0; i < 100; i++ { 621 key = i 622 value = int32(i) 623 a[key] = value 624 b[key] = value 625 } 626 So(EqualIntInt32Map(a, b), ShouldBeTrue) 627 delete(a, key) 628 So(EqualIntInt32Map(a, b), ShouldBeFalse) 629 }) 630 631 Convey("EqualIntInt64Map", t, func() { 632 So(EqualIntInt64Map(nil, nil), ShouldBeTrue) 633 var a, b = make(map[int]int64), make(map[int]int64) 634 So(EqualIntInt64Map(a, nil), ShouldBeFalse) 635 So(EqualIntInt64Map(nil, a), ShouldBeFalse) 636 So(EqualIntInt64Map(a, b), ShouldBeTrue) 637 638 var key int 639 var value int64 640 for i := 0; i < 100; i++ { 641 key = i 642 value = int64(i) 643 a[key] = value 644 b[key] = value 645 } 646 So(EqualIntInt64Map(a, b), ShouldBeTrue) 647 delete(a, key) 648 So(EqualIntInt64Map(a, b), ShouldBeFalse) 649 }) 650 651 Convey("EqualIntInt8Map", t, func() { 652 So(EqualIntInt8Map(nil, nil), ShouldBeTrue) 653 var a, b = make(map[int]int8), make(map[int]int8) 654 So(EqualIntInt8Map(a, nil), ShouldBeFalse) 655 So(EqualIntInt8Map(nil, a), ShouldBeFalse) 656 So(EqualIntInt8Map(a, b), ShouldBeTrue) 657 658 var key int 659 var value int8 660 for i := 0; i < 100; i++ { 661 key = i 662 value = int8(i) 663 a[key] = value 664 b[key] = value 665 } 666 So(EqualIntInt8Map(a, b), ShouldBeTrue) 667 delete(a, key) 668 So(EqualIntInt8Map(a, b), ShouldBeFalse) 669 }) 670 671 Convey("EqualIntStringMap", t, func() { 672 So(EqualIntStringMap(nil, nil), ShouldBeTrue) 673 var a, b = make(map[int]string), make(map[int]string) 674 So(EqualIntStringMap(a, nil), ShouldBeFalse) 675 So(EqualIntStringMap(nil, a), ShouldBeFalse) 676 So(EqualIntStringMap(a, b), ShouldBeTrue) 677 678 var key int 679 var value string 680 for i := 0; i < 100; i++ { 681 key = i 682 value = strconv.FormatInt(int64(i), 10) 683 a[key] = value 684 b[key] = value 685 } 686 So(EqualIntStringMap(a, b), ShouldBeTrue) 687 delete(a, key) 688 So(EqualIntStringMap(a, b), ShouldBeFalse) 689 }) 690 691 Convey("EqualIntUintMap", t, func() { 692 So(EqualIntUintMap(nil, nil), ShouldBeTrue) 693 var a, b = make(map[int]uint), make(map[int]uint) 694 So(EqualIntUintMap(a, nil), ShouldBeFalse) 695 So(EqualIntUintMap(nil, a), ShouldBeFalse) 696 So(EqualIntUintMap(a, b), ShouldBeTrue) 697 698 var key int 699 var value uint 700 for i := 0; i < 100; i++ { 701 key = i 702 value = uint(i) 703 a[key] = value 704 b[key] = value 705 } 706 So(EqualIntUintMap(a, b), ShouldBeTrue) 707 delete(a, key) 708 So(EqualIntUintMap(a, b), ShouldBeFalse) 709 }) 710 711 Convey("EqualIntUint16Map", t, func() { 712 So(EqualIntUint16Map(nil, nil), ShouldBeTrue) 713 var a, b = make(map[int]uint16), make(map[int]uint16) 714 So(EqualIntUint16Map(a, nil), ShouldBeFalse) 715 So(EqualIntUint16Map(nil, a), ShouldBeFalse) 716 So(EqualIntUint16Map(a, b), ShouldBeTrue) 717 718 var key int 719 var value uint16 720 for i := 0; i < 100; i++ { 721 key = i 722 value = uint16(i) 723 a[key] = value 724 b[key] = value 725 } 726 So(EqualIntUint16Map(a, b), ShouldBeTrue) 727 delete(a, key) 728 So(EqualIntUint16Map(a, b), ShouldBeFalse) 729 }) 730 731 Convey("EqualIntUint32Map", t, func() { 732 So(EqualIntUint32Map(nil, nil), ShouldBeTrue) 733 var a, b = make(map[int]uint32), make(map[int]uint32) 734 So(EqualIntUint32Map(a, nil), ShouldBeFalse) 735 So(EqualIntUint32Map(nil, a), ShouldBeFalse) 736 So(EqualIntUint32Map(a, b), ShouldBeTrue) 737 738 var key int 739 var value uint32 740 for i := 0; i < 100; i++ { 741 key = i 742 value = uint32(i) 743 a[key] = value 744 b[key] = value 745 } 746 So(EqualIntUint32Map(a, b), ShouldBeTrue) 747 delete(a, key) 748 So(EqualIntUint32Map(a, b), ShouldBeFalse) 749 }) 750 751 Convey("EqualIntUint64Map", t, func() { 752 So(EqualIntUint64Map(nil, nil), ShouldBeTrue) 753 var a, b = make(map[int]uint64), make(map[int]uint64) 754 So(EqualIntUint64Map(a, nil), ShouldBeFalse) 755 So(EqualIntUint64Map(nil, a), ShouldBeFalse) 756 So(EqualIntUint64Map(a, b), ShouldBeTrue) 757 758 var key int 759 var value uint64 760 for i := 0; i < 100; i++ { 761 key = i 762 value = uint64(i) 763 a[key] = value 764 b[key] = value 765 } 766 So(EqualIntUint64Map(a, b), ShouldBeTrue) 767 delete(a, key) 768 So(EqualIntUint64Map(a, b), ShouldBeFalse) 769 }) 770 771 Convey("EqualIntUint8Map", t, func() { 772 So(EqualIntUint8Map(nil, nil), ShouldBeTrue) 773 var a, b = make(map[int]uint8), make(map[int]uint8) 774 So(EqualIntUint8Map(a, nil), ShouldBeFalse) 775 So(EqualIntUint8Map(nil, a), ShouldBeFalse) 776 So(EqualIntUint8Map(a, b), ShouldBeTrue) 777 778 var key int 779 var value uint8 780 for i := 0; i < 100; i++ { 781 key = i 782 value = uint8(i) 783 a[key] = value 784 b[key] = value 785 } 786 So(EqualIntUint8Map(a, b), ShouldBeTrue) 787 delete(a, key) 788 So(EqualIntUint8Map(a, b), ShouldBeFalse) 789 }) 790 791 Convey("EqualInt16Float32Map", t, func() { 792 So(EqualInt16Float32Map(nil, nil), ShouldBeTrue) 793 var a, b = make(map[int16]float32), make(map[int16]float32) 794 So(EqualInt16Float32Map(a, nil), ShouldBeFalse) 795 So(EqualInt16Float32Map(nil, a), ShouldBeFalse) 796 So(EqualInt16Float32Map(a, b), ShouldBeTrue) 797 798 var key int16 799 var value float32 800 for i := 0; i < 100; i++ { 801 key = int16(i) 802 value = float32(i) 803 a[key] = value 804 b[key] = value 805 } 806 So(EqualInt16Float32Map(a, b), ShouldBeTrue) 807 delete(a, key) 808 So(EqualInt16Float32Map(a, b), ShouldBeFalse) 809 }) 810 811 Convey("EqualInt16Float64Map", t, func() { 812 So(EqualInt16Float64Map(nil, nil), ShouldBeTrue) 813 var a, b = make(map[int16]float64), make(map[int16]float64) 814 So(EqualInt16Float64Map(a, nil), ShouldBeFalse) 815 So(EqualInt16Float64Map(nil, a), ShouldBeFalse) 816 So(EqualInt16Float64Map(a, b), ShouldBeTrue) 817 818 var key int16 819 var value float64 820 for i := 0; i < 100; i++ { 821 key = int16(i) 822 value = float64(i) 823 a[key] = value 824 b[key] = value 825 } 826 So(EqualInt16Float64Map(a, b), ShouldBeTrue) 827 delete(a, key) 828 So(EqualInt16Float64Map(a, b), ShouldBeFalse) 829 }) 830 831 Convey("EqualInt16IntMap", t, func() { 832 So(EqualInt16IntMap(nil, nil), ShouldBeTrue) 833 var a, b = make(map[int16]int), make(map[int16]int) 834 So(EqualInt16IntMap(a, nil), ShouldBeFalse) 835 So(EqualInt16IntMap(nil, a), ShouldBeFalse) 836 So(EqualInt16IntMap(a, b), ShouldBeTrue) 837 838 var key int16 839 var value int 840 for i := 0; i < 100; i++ { 841 key = int16(i) 842 value = i 843 a[key] = value 844 b[key] = value 845 } 846 So(EqualInt16IntMap(a, b), ShouldBeTrue) 847 delete(a, key) 848 So(EqualInt16IntMap(a, b), ShouldBeFalse) 849 }) 850 851 Convey("EqualInt16Int16Map", t, func() { 852 So(EqualInt16Int16Map(nil, nil), ShouldBeTrue) 853 var a, b = make(map[int16]int16), make(map[int16]int16) 854 So(EqualInt16Int16Map(a, nil), ShouldBeFalse) 855 So(EqualInt16Int16Map(nil, a), ShouldBeFalse) 856 So(EqualInt16Int16Map(a, b), ShouldBeTrue) 857 858 var key int16 859 var value int16 860 for i := 0; i < 100; i++ { 861 key = int16(i) 862 value = int16(i) 863 a[key] = value 864 b[key] = value 865 } 866 So(EqualInt16Int16Map(a, b), ShouldBeTrue) 867 delete(a, key) 868 So(EqualInt16Int16Map(a, b), ShouldBeFalse) 869 }) 870 871 Convey("EqualInt16Int32Map", t, func() { 872 So(EqualInt16Int32Map(nil, nil), ShouldBeTrue) 873 var a, b = make(map[int16]int32), make(map[int16]int32) 874 So(EqualInt16Int32Map(a, nil), ShouldBeFalse) 875 So(EqualInt16Int32Map(nil, a), ShouldBeFalse) 876 So(EqualInt16Int32Map(a, b), ShouldBeTrue) 877 878 var key int16 879 var value int32 880 for i := 0; i < 100; i++ { 881 key = int16(i) 882 value = int32(i) 883 a[key] = value 884 b[key] = value 885 } 886 So(EqualInt16Int32Map(a, b), ShouldBeTrue) 887 delete(a, key) 888 So(EqualInt16Int32Map(a, b), ShouldBeFalse) 889 }) 890 891 Convey("EqualInt16Int64Map", t, func() { 892 So(EqualInt16Int64Map(nil, nil), ShouldBeTrue) 893 var a, b = make(map[int16]int64), make(map[int16]int64) 894 So(EqualInt16Int64Map(a, nil), ShouldBeFalse) 895 So(EqualInt16Int64Map(nil, a), ShouldBeFalse) 896 So(EqualInt16Int64Map(a, b), ShouldBeTrue) 897 898 var key int16 899 var value int64 900 for i := 0; i < 100; i++ { 901 key = int16(i) 902 value = int64(i) 903 a[key] = value 904 b[key] = value 905 } 906 So(EqualInt16Int64Map(a, b), ShouldBeTrue) 907 delete(a, key) 908 So(EqualInt16Int64Map(a, b), ShouldBeFalse) 909 }) 910 911 Convey("EqualInt16Int8Map", t, func() { 912 So(EqualInt16Int8Map(nil, nil), ShouldBeTrue) 913 var a, b = make(map[int16]int8), make(map[int16]int8) 914 So(EqualInt16Int8Map(a, nil), ShouldBeFalse) 915 So(EqualInt16Int8Map(nil, a), ShouldBeFalse) 916 So(EqualInt16Int8Map(a, b), ShouldBeTrue) 917 918 var key int16 919 var value int8 920 for i := 0; i < 100; i++ { 921 key = int16(i) 922 value = int8(i) 923 a[key] = value 924 b[key] = value 925 } 926 So(EqualInt16Int8Map(a, b), ShouldBeTrue) 927 delete(a, key) 928 So(EqualInt16Int8Map(a, b), ShouldBeFalse) 929 }) 930 931 Convey("EqualInt16StringMap", t, func() { 932 So(EqualInt16StringMap(nil, nil), ShouldBeTrue) 933 var a, b = make(map[int16]string), make(map[int16]string) 934 So(EqualInt16StringMap(a, nil), ShouldBeFalse) 935 So(EqualInt16StringMap(nil, a), ShouldBeFalse) 936 So(EqualInt16StringMap(a, b), ShouldBeTrue) 937 938 var key int16 939 var value string 940 for i := 0; i < 100; i++ { 941 key = int16(i) 942 value = strconv.FormatInt(int64(i), 10) 943 a[key] = value 944 b[key] = value 945 } 946 So(EqualInt16StringMap(a, b), ShouldBeTrue) 947 delete(a, key) 948 So(EqualInt16StringMap(a, b), ShouldBeFalse) 949 }) 950 951 Convey("EqualInt16UintMap", t, func() { 952 So(EqualInt16UintMap(nil, nil), ShouldBeTrue) 953 var a, b = make(map[int16]uint), make(map[int16]uint) 954 So(EqualInt16UintMap(a, nil), ShouldBeFalse) 955 So(EqualInt16UintMap(nil, a), ShouldBeFalse) 956 So(EqualInt16UintMap(a, b), ShouldBeTrue) 957 958 var key int16 959 var value uint 960 for i := 0; i < 100; i++ { 961 key = int16(i) 962 value = uint(i) 963 a[key] = value 964 b[key] = value 965 } 966 So(EqualInt16UintMap(a, b), ShouldBeTrue) 967 delete(a, key) 968 So(EqualInt16UintMap(a, b), ShouldBeFalse) 969 }) 970 971 Convey("EqualInt16Uint16Map", t, func() { 972 So(EqualInt16Uint16Map(nil, nil), ShouldBeTrue) 973 var a, b = make(map[int16]uint16), make(map[int16]uint16) 974 So(EqualInt16Uint16Map(a, nil), ShouldBeFalse) 975 So(EqualInt16Uint16Map(nil, a), ShouldBeFalse) 976 So(EqualInt16Uint16Map(a, b), ShouldBeTrue) 977 978 var key int16 979 var value uint16 980 for i := 0; i < 100; i++ { 981 key = int16(i) 982 value = uint16(i) 983 a[key] = value 984 b[key] = value 985 } 986 So(EqualInt16Uint16Map(a, b), ShouldBeTrue) 987 delete(a, key) 988 So(EqualInt16Uint16Map(a, b), ShouldBeFalse) 989 }) 990 991 Convey("EqualInt16Uint32Map", t, func() { 992 So(EqualInt16Uint32Map(nil, nil), ShouldBeTrue) 993 var a, b = make(map[int16]uint32), make(map[int16]uint32) 994 So(EqualInt16Uint32Map(a, nil), ShouldBeFalse) 995 So(EqualInt16Uint32Map(nil, a), ShouldBeFalse) 996 So(EqualInt16Uint32Map(a, b), ShouldBeTrue) 997 998 var key int16 999 var value uint32 1000 for i := 0; i < 100; i++ { 1001 key = int16(i) 1002 value = uint32(i) 1003 a[key] = value 1004 b[key] = value 1005 } 1006 So(EqualInt16Uint32Map(a, b), ShouldBeTrue) 1007 delete(a, key) 1008 So(EqualInt16Uint32Map(a, b), ShouldBeFalse) 1009 }) 1010 1011 Convey("EqualInt16Uint64Map", t, func() { 1012 So(EqualInt16Uint64Map(nil, nil), ShouldBeTrue) 1013 var a, b = make(map[int16]uint64), make(map[int16]uint64) 1014 So(EqualInt16Uint64Map(a, nil), ShouldBeFalse) 1015 So(EqualInt16Uint64Map(nil, a), ShouldBeFalse) 1016 So(EqualInt16Uint64Map(a, b), ShouldBeTrue) 1017 1018 var key int16 1019 var value uint64 1020 for i := 0; i < 100; i++ { 1021 key = int16(i) 1022 value = uint64(i) 1023 a[key] = value 1024 b[key] = value 1025 } 1026 So(EqualInt16Uint64Map(a, b), ShouldBeTrue) 1027 delete(a, key) 1028 So(EqualInt16Uint64Map(a, b), ShouldBeFalse) 1029 }) 1030 1031 Convey("EqualInt16Uint8Map", t, func() { 1032 So(EqualInt16Uint8Map(nil, nil), ShouldBeTrue) 1033 var a, b = make(map[int16]uint8), make(map[int16]uint8) 1034 So(EqualInt16Uint8Map(a, nil), ShouldBeFalse) 1035 So(EqualInt16Uint8Map(nil, a), ShouldBeFalse) 1036 So(EqualInt16Uint8Map(a, b), ShouldBeTrue) 1037 1038 var key int16 1039 var value uint8 1040 for i := 0; i < 100; i++ { 1041 key = int16(i) 1042 value = uint8(i) 1043 a[key] = value 1044 b[key] = value 1045 } 1046 So(EqualInt16Uint8Map(a, b), ShouldBeTrue) 1047 delete(a, key) 1048 So(EqualInt16Uint8Map(a, b), ShouldBeFalse) 1049 }) 1050 1051 Convey("EqualInt32Float32Map", t, func() { 1052 So(EqualInt32Float32Map(nil, nil), ShouldBeTrue) 1053 var a, b = make(map[int32]float32), make(map[int32]float32) 1054 So(EqualInt32Float32Map(a, nil), ShouldBeFalse) 1055 So(EqualInt32Float32Map(nil, a), ShouldBeFalse) 1056 So(EqualInt32Float32Map(a, b), ShouldBeTrue) 1057 1058 var key int32 1059 var value float32 1060 for i := 0; i < 100; i++ { 1061 key = int32(i) 1062 value = float32(i) 1063 a[key] = value 1064 b[key] = value 1065 } 1066 So(EqualInt32Float32Map(a, b), ShouldBeTrue) 1067 delete(a, key) 1068 So(EqualInt32Float32Map(a, b), ShouldBeFalse) 1069 }) 1070 1071 Convey("EqualInt32Float64Map", t, func() { 1072 So(EqualInt32Float64Map(nil, nil), ShouldBeTrue) 1073 var a, b = make(map[int32]float64), make(map[int32]float64) 1074 So(EqualInt32Float64Map(a, nil), ShouldBeFalse) 1075 So(EqualInt32Float64Map(nil, a), ShouldBeFalse) 1076 So(EqualInt32Float64Map(a, b), ShouldBeTrue) 1077 1078 var key int32 1079 var value float64 1080 for i := 0; i < 100; i++ { 1081 key = int32(i) 1082 value = float64(i) 1083 a[key] = value 1084 b[key] = value 1085 } 1086 So(EqualInt32Float64Map(a, b), ShouldBeTrue) 1087 delete(a, key) 1088 So(EqualInt32Float64Map(a, b), ShouldBeFalse) 1089 }) 1090 1091 Convey("EqualInt32IntMap", t, func() { 1092 So(EqualInt32IntMap(nil, nil), ShouldBeTrue) 1093 var a, b = make(map[int32]int), make(map[int32]int) 1094 So(EqualInt32IntMap(a, nil), ShouldBeFalse) 1095 So(EqualInt32IntMap(nil, a), ShouldBeFalse) 1096 So(EqualInt32IntMap(a, b), ShouldBeTrue) 1097 1098 var key int32 1099 var value int 1100 for i := 0; i < 100; i++ { 1101 key = int32(i) 1102 value = i 1103 a[key] = value 1104 b[key] = value 1105 } 1106 So(EqualInt32IntMap(a, b), ShouldBeTrue) 1107 delete(a, key) 1108 So(EqualInt32IntMap(a, b), ShouldBeFalse) 1109 }) 1110 1111 Convey("EqualInt32Int16Map", t, func() { 1112 So(EqualInt32Int16Map(nil, nil), ShouldBeTrue) 1113 var a, b = make(map[int32]int16), make(map[int32]int16) 1114 So(EqualInt32Int16Map(a, nil), ShouldBeFalse) 1115 So(EqualInt32Int16Map(nil, a), ShouldBeFalse) 1116 So(EqualInt32Int16Map(a, b), ShouldBeTrue) 1117 1118 var key int32 1119 var value int16 1120 for i := 0; i < 100; i++ { 1121 key = int32(i) 1122 value = int16(i) 1123 a[key] = value 1124 b[key] = value 1125 } 1126 So(EqualInt32Int16Map(a, b), ShouldBeTrue) 1127 delete(a, key) 1128 So(EqualInt32Int16Map(a, b), ShouldBeFalse) 1129 }) 1130 1131 Convey("EqualInt32Int32Map", t, func() { 1132 So(EqualInt32Int32Map(nil, nil), ShouldBeTrue) 1133 var a, b = make(map[int32]int32), make(map[int32]int32) 1134 So(EqualInt32Int32Map(a, nil), ShouldBeFalse) 1135 So(EqualInt32Int32Map(nil, a), ShouldBeFalse) 1136 So(EqualInt32Int32Map(a, b), ShouldBeTrue) 1137 1138 var key int32 1139 var value int32 1140 for i := 0; i < 100; i++ { 1141 key = int32(i) 1142 value = int32(i) 1143 a[key] = value 1144 b[key] = value 1145 } 1146 So(EqualInt32Int32Map(a, b), ShouldBeTrue) 1147 delete(a, key) 1148 So(EqualInt32Int32Map(a, b), ShouldBeFalse) 1149 }) 1150 1151 Convey("EqualInt32Int64Map", t, func() { 1152 So(EqualInt32Int64Map(nil, nil), ShouldBeTrue) 1153 var a, b = make(map[int32]int64), make(map[int32]int64) 1154 So(EqualInt32Int64Map(a, nil), ShouldBeFalse) 1155 So(EqualInt32Int64Map(nil, a), ShouldBeFalse) 1156 So(EqualInt32Int64Map(a, b), ShouldBeTrue) 1157 1158 var key int32 1159 var value int64 1160 for i := 0; i < 100; i++ { 1161 key = int32(i) 1162 value = int64(i) 1163 a[key] = value 1164 b[key] = value 1165 } 1166 So(EqualInt32Int64Map(a, b), ShouldBeTrue) 1167 delete(a, key) 1168 So(EqualInt32Int64Map(a, b), ShouldBeFalse) 1169 }) 1170 1171 Convey("EqualInt32Int8Map", t, func() { 1172 So(EqualInt32Int8Map(nil, nil), ShouldBeTrue) 1173 var a, b = make(map[int32]int8), make(map[int32]int8) 1174 So(EqualInt32Int8Map(a, nil), ShouldBeFalse) 1175 So(EqualInt32Int8Map(nil, a), ShouldBeFalse) 1176 So(EqualInt32Int8Map(a, b), ShouldBeTrue) 1177 1178 var key int32 1179 var value int8 1180 for i := 0; i < 100; i++ { 1181 key = int32(i) 1182 value = int8(i) 1183 a[key] = value 1184 b[key] = value 1185 } 1186 So(EqualInt32Int8Map(a, b), ShouldBeTrue) 1187 delete(a, key) 1188 So(EqualInt32Int8Map(a, b), ShouldBeFalse) 1189 }) 1190 1191 Convey("EqualInt32StringMap", t, func() { 1192 So(EqualInt32StringMap(nil, nil), ShouldBeTrue) 1193 var a, b = make(map[int32]string), make(map[int32]string) 1194 So(EqualInt32StringMap(a, nil), ShouldBeFalse) 1195 So(EqualInt32StringMap(nil, a), ShouldBeFalse) 1196 So(EqualInt32StringMap(a, b), ShouldBeTrue) 1197 1198 var key int32 1199 var value string 1200 for i := 0; i < 100; i++ { 1201 key = int32(i) 1202 value = strconv.FormatInt(int64(i), 10) 1203 a[key] = value 1204 b[key] = value 1205 } 1206 So(EqualInt32StringMap(a, b), ShouldBeTrue) 1207 delete(a, key) 1208 So(EqualInt32StringMap(a, b), ShouldBeFalse) 1209 }) 1210 1211 Convey("EqualInt32UintMap", t, func() { 1212 So(EqualInt32UintMap(nil, nil), ShouldBeTrue) 1213 var a, b = make(map[int32]uint), make(map[int32]uint) 1214 So(EqualInt32UintMap(a, nil), ShouldBeFalse) 1215 So(EqualInt32UintMap(nil, a), ShouldBeFalse) 1216 So(EqualInt32UintMap(a, b), ShouldBeTrue) 1217 1218 var key int32 1219 var value uint 1220 for i := 0; i < 100; i++ { 1221 key = int32(i) 1222 value = uint(i) 1223 a[key] = value 1224 b[key] = value 1225 } 1226 So(EqualInt32UintMap(a, b), ShouldBeTrue) 1227 delete(a, key) 1228 So(EqualInt32UintMap(a, b), ShouldBeFalse) 1229 }) 1230 1231 Convey("EqualInt32Uint16Map", t, func() { 1232 So(EqualInt32Uint16Map(nil, nil), ShouldBeTrue) 1233 var a, b = make(map[int32]uint16), make(map[int32]uint16) 1234 So(EqualInt32Uint16Map(a, nil), ShouldBeFalse) 1235 So(EqualInt32Uint16Map(nil, a), ShouldBeFalse) 1236 So(EqualInt32Uint16Map(a, b), ShouldBeTrue) 1237 1238 var key int32 1239 var value uint16 1240 for i := 0; i < 100; i++ { 1241 key = int32(i) 1242 value = uint16(i) 1243 a[key] = value 1244 b[key] = value 1245 } 1246 So(EqualInt32Uint16Map(a, b), ShouldBeTrue) 1247 delete(a, key) 1248 So(EqualInt32Uint16Map(a, b), ShouldBeFalse) 1249 }) 1250 1251 Convey("EqualInt32Uint32Map", t, func() { 1252 So(EqualInt32Uint32Map(nil, nil), ShouldBeTrue) 1253 var a, b = make(map[int32]uint32), make(map[int32]uint32) 1254 So(EqualInt32Uint32Map(a, nil), ShouldBeFalse) 1255 So(EqualInt32Uint32Map(nil, a), ShouldBeFalse) 1256 So(EqualInt32Uint32Map(a, b), ShouldBeTrue) 1257 1258 var key int32 1259 var value uint32 1260 for i := 0; i < 100; i++ { 1261 key = int32(i) 1262 value = uint32(i) 1263 a[key] = value 1264 b[key] = value 1265 } 1266 So(EqualInt32Uint32Map(a, b), ShouldBeTrue) 1267 delete(a, key) 1268 So(EqualInt32Uint32Map(a, b), ShouldBeFalse) 1269 }) 1270 1271 Convey("EqualInt32Uint64Map", t, func() { 1272 So(EqualInt32Uint64Map(nil, nil), ShouldBeTrue) 1273 var a, b = make(map[int32]uint64), make(map[int32]uint64) 1274 So(EqualInt32Uint64Map(a, nil), ShouldBeFalse) 1275 So(EqualInt32Uint64Map(nil, a), ShouldBeFalse) 1276 So(EqualInt32Uint64Map(a, b), ShouldBeTrue) 1277 1278 var key int32 1279 var value uint64 1280 for i := 0; i < 100; i++ { 1281 key = int32(i) 1282 value = uint64(i) 1283 a[key] = value 1284 b[key] = value 1285 } 1286 So(EqualInt32Uint64Map(a, b), ShouldBeTrue) 1287 delete(a, key) 1288 So(EqualInt32Uint64Map(a, b), ShouldBeFalse) 1289 }) 1290 1291 Convey("EqualInt32Uint8Map", t, func() { 1292 So(EqualInt32Uint8Map(nil, nil), ShouldBeTrue) 1293 var a, b = make(map[int32]uint8), make(map[int32]uint8) 1294 So(EqualInt32Uint8Map(a, nil), ShouldBeFalse) 1295 So(EqualInt32Uint8Map(nil, a), ShouldBeFalse) 1296 So(EqualInt32Uint8Map(a, b), ShouldBeTrue) 1297 1298 var key int32 1299 var value uint8 1300 for i := 0; i < 100; i++ { 1301 key = int32(i) 1302 value = uint8(i) 1303 a[key] = value 1304 b[key] = value 1305 } 1306 So(EqualInt32Uint8Map(a, b), ShouldBeTrue) 1307 delete(a, key) 1308 So(EqualInt32Uint8Map(a, b), ShouldBeFalse) 1309 }) 1310 1311 Convey("EqualInt64Float32Map", t, func() { 1312 So(EqualInt64Float32Map(nil, nil), ShouldBeTrue) 1313 var a, b = make(map[int64]float32), make(map[int64]float32) 1314 So(EqualInt64Float32Map(a, nil), ShouldBeFalse) 1315 So(EqualInt64Float32Map(nil, a), ShouldBeFalse) 1316 So(EqualInt64Float32Map(a, b), ShouldBeTrue) 1317 1318 var key int64 1319 var value float32 1320 for i := 0; i < 100; i++ { 1321 key = int64(i) 1322 value = float32(i) 1323 a[key] = value 1324 b[key] = value 1325 } 1326 So(EqualInt64Float32Map(a, b), ShouldBeTrue) 1327 delete(a, key) 1328 So(EqualInt64Float32Map(a, b), ShouldBeFalse) 1329 }) 1330 1331 Convey("EqualInt64Float64Map", t, func() { 1332 So(EqualInt64Float64Map(nil, nil), ShouldBeTrue) 1333 var a, b = make(map[int64]float64), make(map[int64]float64) 1334 So(EqualInt64Float64Map(a, nil), ShouldBeFalse) 1335 So(EqualInt64Float64Map(nil, a), ShouldBeFalse) 1336 So(EqualInt64Float64Map(a, b), ShouldBeTrue) 1337 1338 var key int64 1339 var value float64 1340 for i := 0; i < 100; i++ { 1341 key = int64(i) 1342 value = float64(i) 1343 a[key] = value 1344 b[key] = value 1345 } 1346 So(EqualInt64Float64Map(a, b), ShouldBeTrue) 1347 delete(a, key) 1348 So(EqualInt64Float64Map(a, b), ShouldBeFalse) 1349 }) 1350 1351 Convey("EqualInt64IntMap", t, func() { 1352 So(EqualInt64IntMap(nil, nil), ShouldBeTrue) 1353 var a, b = make(map[int64]int), make(map[int64]int) 1354 So(EqualInt64IntMap(a, nil), ShouldBeFalse) 1355 So(EqualInt64IntMap(nil, a), ShouldBeFalse) 1356 So(EqualInt64IntMap(a, b), ShouldBeTrue) 1357 1358 var key int64 1359 var value int 1360 for i := 0; i < 100; i++ { 1361 key = int64(i) 1362 value = i 1363 a[key] = value 1364 b[key] = value 1365 } 1366 So(EqualInt64IntMap(a, b), ShouldBeTrue) 1367 delete(a, key) 1368 So(EqualInt64IntMap(a, b), ShouldBeFalse) 1369 }) 1370 1371 Convey("EqualInt64Int16Map", t, func() { 1372 So(EqualInt64Int16Map(nil, nil), ShouldBeTrue) 1373 var a, b = make(map[int64]int16), make(map[int64]int16) 1374 So(EqualInt64Int16Map(a, nil), ShouldBeFalse) 1375 So(EqualInt64Int16Map(nil, a), ShouldBeFalse) 1376 So(EqualInt64Int16Map(a, b), ShouldBeTrue) 1377 1378 var key int64 1379 var value int16 1380 for i := 0; i < 100; i++ { 1381 key = int64(i) 1382 value = int16(i) 1383 a[key] = value 1384 b[key] = value 1385 } 1386 So(EqualInt64Int16Map(a, b), ShouldBeTrue) 1387 delete(a, key) 1388 So(EqualInt64Int16Map(a, b), ShouldBeFalse) 1389 }) 1390 1391 Convey("EqualInt64Int32Map", t, func() { 1392 So(EqualInt64Int32Map(nil, nil), ShouldBeTrue) 1393 var a, b = make(map[int64]int32), make(map[int64]int32) 1394 So(EqualInt64Int32Map(a, nil), ShouldBeFalse) 1395 So(EqualInt64Int32Map(nil, a), ShouldBeFalse) 1396 So(EqualInt64Int32Map(a, b), ShouldBeTrue) 1397 1398 var key int64 1399 var value int32 1400 for i := 0; i < 100; i++ { 1401 key = int64(i) 1402 value = int32(i) 1403 a[key] = value 1404 b[key] = value 1405 } 1406 So(EqualInt64Int32Map(a, b), ShouldBeTrue) 1407 delete(a, key) 1408 So(EqualInt64Int32Map(a, b), ShouldBeFalse) 1409 }) 1410 1411 Convey("EqualInt64Int64Map", t, func() { 1412 So(EqualInt64Int64Map(nil, nil), ShouldBeTrue) 1413 var a, b = make(map[int64]int64), make(map[int64]int64) 1414 So(EqualInt64Int64Map(a, nil), ShouldBeFalse) 1415 So(EqualInt64Int64Map(nil, a), ShouldBeFalse) 1416 So(EqualInt64Int64Map(a, b), ShouldBeTrue) 1417 1418 var key int64 1419 var value int64 1420 for i := 0; i < 100; i++ { 1421 key = int64(i) 1422 value = int64(i) 1423 a[key] = value 1424 b[key] = value 1425 } 1426 So(EqualInt64Int64Map(a, b), ShouldBeTrue) 1427 delete(a, key) 1428 So(EqualInt64Int64Map(a, b), ShouldBeFalse) 1429 }) 1430 1431 Convey("EqualInt64Int8Map", t, func() { 1432 So(EqualInt64Int8Map(nil, nil), ShouldBeTrue) 1433 var a, b = make(map[int64]int8), make(map[int64]int8) 1434 So(EqualInt64Int8Map(a, nil), ShouldBeFalse) 1435 So(EqualInt64Int8Map(nil, a), ShouldBeFalse) 1436 So(EqualInt64Int8Map(a, b), ShouldBeTrue) 1437 1438 var key int64 1439 var value int8 1440 for i := 0; i < 100; i++ { 1441 key = int64(i) 1442 value = int8(i) 1443 a[key] = value 1444 b[key] = value 1445 } 1446 So(EqualInt64Int8Map(a, b), ShouldBeTrue) 1447 delete(a, key) 1448 So(EqualInt64Int8Map(a, b), ShouldBeFalse) 1449 }) 1450 1451 Convey("EqualInt64StringMap", t, func() { 1452 So(EqualInt64StringMap(nil, nil), ShouldBeTrue) 1453 var a, b = make(map[int64]string), make(map[int64]string) 1454 So(EqualInt64StringMap(a, nil), ShouldBeFalse) 1455 So(EqualInt64StringMap(nil, a), ShouldBeFalse) 1456 So(EqualInt64StringMap(a, b), ShouldBeTrue) 1457 1458 var key int64 1459 var value string 1460 for i := 0; i < 100; i++ { 1461 key = int64(i) 1462 value = strconv.FormatInt(int64(i), 10) 1463 a[key] = value 1464 b[key] = value 1465 } 1466 So(EqualInt64StringMap(a, b), ShouldBeTrue) 1467 delete(a, key) 1468 So(EqualInt64StringMap(a, b), ShouldBeFalse) 1469 }) 1470 1471 Convey("EqualInt64UintMap", t, func() { 1472 So(EqualInt64UintMap(nil, nil), ShouldBeTrue) 1473 var a, b = make(map[int64]uint), make(map[int64]uint) 1474 So(EqualInt64UintMap(a, nil), ShouldBeFalse) 1475 So(EqualInt64UintMap(nil, a), ShouldBeFalse) 1476 So(EqualInt64UintMap(a, b), ShouldBeTrue) 1477 1478 var key int64 1479 var value uint 1480 for i := 0; i < 100; i++ { 1481 key = int64(i) 1482 value = uint(i) 1483 a[key] = value 1484 b[key] = value 1485 } 1486 So(EqualInt64UintMap(a, b), ShouldBeTrue) 1487 delete(a, key) 1488 So(EqualInt64UintMap(a, b), ShouldBeFalse) 1489 }) 1490 1491 Convey("EqualInt64Uint16Map", t, func() { 1492 So(EqualInt64Uint16Map(nil, nil), ShouldBeTrue) 1493 var a, b = make(map[int64]uint16), make(map[int64]uint16) 1494 So(EqualInt64Uint16Map(a, nil), ShouldBeFalse) 1495 So(EqualInt64Uint16Map(nil, a), ShouldBeFalse) 1496 So(EqualInt64Uint16Map(a, b), ShouldBeTrue) 1497 1498 var key int64 1499 var value uint16 1500 for i := 0; i < 100; i++ { 1501 key = int64(i) 1502 value = uint16(i) 1503 a[key] = value 1504 b[key] = value 1505 } 1506 So(EqualInt64Uint16Map(a, b), ShouldBeTrue) 1507 delete(a, key) 1508 So(EqualInt64Uint16Map(a, b), ShouldBeFalse) 1509 }) 1510 1511 Convey("EqualInt64Uint32Map", t, func() { 1512 So(EqualInt64Uint32Map(nil, nil), ShouldBeTrue) 1513 var a, b = make(map[int64]uint32), make(map[int64]uint32) 1514 So(EqualInt64Uint32Map(a, nil), ShouldBeFalse) 1515 So(EqualInt64Uint32Map(nil, a), ShouldBeFalse) 1516 So(EqualInt64Uint32Map(a, b), ShouldBeTrue) 1517 1518 var key int64 1519 var value uint32 1520 for i := 0; i < 100; i++ { 1521 key = int64(i) 1522 value = uint32(i) 1523 a[key] = value 1524 b[key] = value 1525 } 1526 So(EqualInt64Uint32Map(a, b), ShouldBeTrue) 1527 delete(a, key) 1528 So(EqualInt64Uint32Map(a, b), ShouldBeFalse) 1529 }) 1530 1531 Convey("EqualInt64Uint64Map", t, func() { 1532 So(EqualInt64Uint64Map(nil, nil), ShouldBeTrue) 1533 var a, b = make(map[int64]uint64), make(map[int64]uint64) 1534 So(EqualInt64Uint64Map(a, nil), ShouldBeFalse) 1535 So(EqualInt64Uint64Map(nil, a), ShouldBeFalse) 1536 So(EqualInt64Uint64Map(a, b), ShouldBeTrue) 1537 1538 var key int64 1539 var value uint64 1540 for i := 0; i < 100; i++ { 1541 key = int64(i) 1542 value = uint64(i) 1543 a[key] = value 1544 b[key] = value 1545 } 1546 So(EqualInt64Uint64Map(a, b), ShouldBeTrue) 1547 delete(a, key) 1548 So(EqualInt64Uint64Map(a, b), ShouldBeFalse) 1549 }) 1550 1551 Convey("EqualInt64Uint8Map", t, func() { 1552 So(EqualInt64Uint8Map(nil, nil), ShouldBeTrue) 1553 var a, b = make(map[int64]uint8), make(map[int64]uint8) 1554 So(EqualInt64Uint8Map(a, nil), ShouldBeFalse) 1555 So(EqualInt64Uint8Map(nil, a), ShouldBeFalse) 1556 So(EqualInt64Uint8Map(a, b), ShouldBeTrue) 1557 1558 var key int64 1559 var value uint8 1560 for i := 0; i < 100; i++ { 1561 key = int64(i) 1562 value = uint8(i) 1563 a[key] = value 1564 b[key] = value 1565 } 1566 So(EqualInt64Uint8Map(a, b), ShouldBeTrue) 1567 delete(a, key) 1568 So(EqualInt64Uint8Map(a, b), ShouldBeFalse) 1569 }) 1570 1571 Convey("EqualInt8Float32Map", t, func() { 1572 So(EqualInt8Float32Map(nil, nil), ShouldBeTrue) 1573 var a, b = make(map[int8]float32), make(map[int8]float32) 1574 So(EqualInt8Float32Map(a, nil), ShouldBeFalse) 1575 So(EqualInt8Float32Map(nil, a), ShouldBeFalse) 1576 So(EqualInt8Float32Map(a, b), ShouldBeTrue) 1577 1578 var key int8 1579 var value float32 1580 for i := 0; i < 100; i++ { 1581 key = int8(i) 1582 value = float32(i) 1583 a[key] = value 1584 b[key] = value 1585 } 1586 So(EqualInt8Float32Map(a, b), ShouldBeTrue) 1587 delete(a, key) 1588 So(EqualInt8Float32Map(a, b), ShouldBeFalse) 1589 }) 1590 1591 Convey("EqualInt8Float64Map", t, func() { 1592 So(EqualInt8Float64Map(nil, nil), ShouldBeTrue) 1593 var a, b = make(map[int8]float64), make(map[int8]float64) 1594 So(EqualInt8Float64Map(a, nil), ShouldBeFalse) 1595 So(EqualInt8Float64Map(nil, a), ShouldBeFalse) 1596 So(EqualInt8Float64Map(a, b), ShouldBeTrue) 1597 1598 var key int8 1599 var value float64 1600 for i := 0; i < 100; i++ { 1601 key = int8(i) 1602 value = float64(i) 1603 a[key] = value 1604 b[key] = value 1605 } 1606 So(EqualInt8Float64Map(a, b), ShouldBeTrue) 1607 delete(a, key) 1608 So(EqualInt8Float64Map(a, b), ShouldBeFalse) 1609 }) 1610 1611 Convey("EqualInt8IntMap", t, func() { 1612 So(EqualInt8IntMap(nil, nil), ShouldBeTrue) 1613 var a, b = make(map[int8]int), make(map[int8]int) 1614 So(EqualInt8IntMap(a, nil), ShouldBeFalse) 1615 So(EqualInt8IntMap(nil, a), ShouldBeFalse) 1616 So(EqualInt8IntMap(a, b), ShouldBeTrue) 1617 1618 var key int8 1619 var value int 1620 for i := 0; i < 100; i++ { 1621 key = int8(i) 1622 value = i 1623 a[key] = value 1624 b[key] = value 1625 } 1626 So(EqualInt8IntMap(a, b), ShouldBeTrue) 1627 delete(a, key) 1628 So(EqualInt8IntMap(a, b), ShouldBeFalse) 1629 }) 1630 1631 Convey("EqualInt8Int16Map", t, func() { 1632 So(EqualInt8Int16Map(nil, nil), ShouldBeTrue) 1633 var a, b = make(map[int8]int16), make(map[int8]int16) 1634 So(EqualInt8Int16Map(a, nil), ShouldBeFalse) 1635 So(EqualInt8Int16Map(nil, a), ShouldBeFalse) 1636 So(EqualInt8Int16Map(a, b), ShouldBeTrue) 1637 1638 var key int8 1639 var value int16 1640 for i := 0; i < 100; i++ { 1641 key = int8(i) 1642 value = int16(i) 1643 a[key] = value 1644 b[key] = value 1645 } 1646 So(EqualInt8Int16Map(a, b), ShouldBeTrue) 1647 delete(a, key) 1648 So(EqualInt8Int16Map(a, b), ShouldBeFalse) 1649 }) 1650 1651 Convey("EqualInt8Int32Map", t, func() { 1652 So(EqualInt8Int32Map(nil, nil), ShouldBeTrue) 1653 var a, b = make(map[int8]int32), make(map[int8]int32) 1654 So(EqualInt8Int32Map(a, nil), ShouldBeFalse) 1655 So(EqualInt8Int32Map(nil, a), ShouldBeFalse) 1656 So(EqualInt8Int32Map(a, b), ShouldBeTrue) 1657 1658 var key int8 1659 var value int32 1660 for i := 0; i < 100; i++ { 1661 key = int8(i) 1662 value = int32(i) 1663 a[key] = value 1664 b[key] = value 1665 } 1666 So(EqualInt8Int32Map(a, b), ShouldBeTrue) 1667 delete(a, key) 1668 So(EqualInt8Int32Map(a, b), ShouldBeFalse) 1669 }) 1670 1671 Convey("EqualInt8Int64Map", t, func() { 1672 So(EqualInt8Int64Map(nil, nil), ShouldBeTrue) 1673 var a, b = make(map[int8]int64), make(map[int8]int64) 1674 So(EqualInt8Int64Map(a, nil), ShouldBeFalse) 1675 So(EqualInt8Int64Map(nil, a), ShouldBeFalse) 1676 So(EqualInt8Int64Map(a, b), ShouldBeTrue) 1677 1678 var key int8 1679 var value int64 1680 for i := 0; i < 100; i++ { 1681 key = int8(i) 1682 value = int64(i) 1683 a[key] = value 1684 b[key] = value 1685 } 1686 So(EqualInt8Int64Map(a, b), ShouldBeTrue) 1687 delete(a, key) 1688 So(EqualInt8Int64Map(a, b), ShouldBeFalse) 1689 }) 1690 1691 Convey("EqualInt8Int8Map", t, func() { 1692 So(EqualInt8Int8Map(nil, nil), ShouldBeTrue) 1693 var a, b = make(map[int8]int8), make(map[int8]int8) 1694 So(EqualInt8Int8Map(a, nil), ShouldBeFalse) 1695 So(EqualInt8Int8Map(nil, a), ShouldBeFalse) 1696 So(EqualInt8Int8Map(a, b), ShouldBeTrue) 1697 1698 var key int8 1699 var value int8 1700 for i := 0; i < 100; i++ { 1701 key = int8(i) 1702 value = int8(i) 1703 a[key] = value 1704 b[key] = value 1705 } 1706 So(EqualInt8Int8Map(a, b), ShouldBeTrue) 1707 delete(a, key) 1708 So(EqualInt8Int8Map(a, b), ShouldBeFalse) 1709 }) 1710 1711 Convey("EqualInt8StringMap", t, func() { 1712 So(EqualInt8StringMap(nil, nil), ShouldBeTrue) 1713 var a, b = make(map[int8]string), make(map[int8]string) 1714 So(EqualInt8StringMap(a, nil), ShouldBeFalse) 1715 So(EqualInt8StringMap(nil, a), ShouldBeFalse) 1716 So(EqualInt8StringMap(a, b), ShouldBeTrue) 1717 1718 var key int8 1719 var value string 1720 for i := 0; i < 100; i++ { 1721 key = int8(i) 1722 value = strconv.FormatInt(int64(i), 10) 1723 a[key] = value 1724 b[key] = value 1725 } 1726 So(EqualInt8StringMap(a, b), ShouldBeTrue) 1727 delete(a, key) 1728 So(EqualInt8StringMap(a, b), ShouldBeFalse) 1729 }) 1730 1731 Convey("EqualInt8UintMap", t, func() { 1732 So(EqualInt8UintMap(nil, nil), ShouldBeTrue) 1733 var a, b = make(map[int8]uint), make(map[int8]uint) 1734 So(EqualInt8UintMap(a, nil), ShouldBeFalse) 1735 So(EqualInt8UintMap(nil, a), ShouldBeFalse) 1736 So(EqualInt8UintMap(a, b), ShouldBeTrue) 1737 1738 var key int8 1739 var value uint 1740 for i := 0; i < 100; i++ { 1741 key = int8(i) 1742 value = uint(i) 1743 a[key] = value 1744 b[key] = value 1745 } 1746 So(EqualInt8UintMap(a, b), ShouldBeTrue) 1747 delete(a, key) 1748 So(EqualInt8UintMap(a, b), ShouldBeFalse) 1749 }) 1750 1751 Convey("EqualInt8Uint16Map", t, func() { 1752 So(EqualInt8Uint16Map(nil, nil), ShouldBeTrue) 1753 var a, b = make(map[int8]uint16), make(map[int8]uint16) 1754 So(EqualInt8Uint16Map(a, nil), ShouldBeFalse) 1755 So(EqualInt8Uint16Map(nil, a), ShouldBeFalse) 1756 So(EqualInt8Uint16Map(a, b), ShouldBeTrue) 1757 1758 var key int8 1759 var value uint16 1760 for i := 0; i < 100; i++ { 1761 key = int8(i) 1762 value = uint16(i) 1763 a[key] = value 1764 b[key] = value 1765 } 1766 So(EqualInt8Uint16Map(a, b), ShouldBeTrue) 1767 delete(a, key) 1768 So(EqualInt8Uint16Map(a, b), ShouldBeFalse) 1769 }) 1770 1771 Convey("EqualInt8Uint32Map", t, func() { 1772 So(EqualInt8Uint32Map(nil, nil), ShouldBeTrue) 1773 var a, b = make(map[int8]uint32), make(map[int8]uint32) 1774 So(EqualInt8Uint32Map(a, nil), ShouldBeFalse) 1775 So(EqualInt8Uint32Map(nil, a), ShouldBeFalse) 1776 So(EqualInt8Uint32Map(a, b), ShouldBeTrue) 1777 1778 var key int8 1779 var value uint32 1780 for i := 0; i < 100; i++ { 1781 key = int8(i) 1782 value = uint32(i) 1783 a[key] = value 1784 b[key] = value 1785 } 1786 So(EqualInt8Uint32Map(a, b), ShouldBeTrue) 1787 delete(a, key) 1788 So(EqualInt8Uint32Map(a, b), ShouldBeFalse) 1789 }) 1790 1791 Convey("EqualInt8Uint64Map", t, func() { 1792 So(EqualInt8Uint64Map(nil, nil), ShouldBeTrue) 1793 var a, b = make(map[int8]uint64), make(map[int8]uint64) 1794 So(EqualInt8Uint64Map(a, nil), ShouldBeFalse) 1795 So(EqualInt8Uint64Map(nil, a), ShouldBeFalse) 1796 So(EqualInt8Uint64Map(a, b), ShouldBeTrue) 1797 1798 var key int8 1799 var value uint64 1800 for i := 0; i < 100; i++ { 1801 key = int8(i) 1802 value = uint64(i) 1803 a[key] = value 1804 b[key] = value 1805 } 1806 So(EqualInt8Uint64Map(a, b), ShouldBeTrue) 1807 delete(a, key) 1808 So(EqualInt8Uint64Map(a, b), ShouldBeFalse) 1809 }) 1810 1811 Convey("EqualInt8Uint8Map", t, func() { 1812 So(EqualInt8Uint8Map(nil, nil), ShouldBeTrue) 1813 var a, b = make(map[int8]uint8), make(map[int8]uint8) 1814 So(EqualInt8Uint8Map(a, nil), ShouldBeFalse) 1815 So(EqualInt8Uint8Map(nil, a), ShouldBeFalse) 1816 So(EqualInt8Uint8Map(a, b), ShouldBeTrue) 1817 1818 var key int8 1819 var value uint8 1820 for i := 0; i < 100; i++ { 1821 key = int8(i) 1822 value = uint8(i) 1823 a[key] = value 1824 b[key] = value 1825 } 1826 So(EqualInt8Uint8Map(a, b), ShouldBeTrue) 1827 delete(a, key) 1828 So(EqualInt8Uint8Map(a, b), ShouldBeFalse) 1829 }) 1830 1831 Convey("EqualStringFloat32Map", t, func() { 1832 So(EqualStringFloat32Map(nil, nil), ShouldBeTrue) 1833 var a, b = make(map[string]float32), make(map[string]float32) 1834 So(EqualStringFloat32Map(a, nil), ShouldBeFalse) 1835 So(EqualStringFloat32Map(nil, a), ShouldBeFalse) 1836 So(EqualStringFloat32Map(a, b), ShouldBeTrue) 1837 1838 var key string 1839 var value float32 1840 for i := 0; i < 100; i++ { 1841 key = strconv.FormatInt(int64(i), 10) 1842 value = float32(i) 1843 a[key] = value 1844 b[key] = value 1845 } 1846 So(EqualStringFloat32Map(a, b), ShouldBeTrue) 1847 delete(a, key) 1848 So(EqualStringFloat32Map(a, b), ShouldBeFalse) 1849 }) 1850 1851 Convey("EqualStringFloat64Map", t, func() { 1852 So(EqualStringFloat64Map(nil, nil), ShouldBeTrue) 1853 var a, b = make(map[string]float64), make(map[string]float64) 1854 So(EqualStringFloat64Map(a, nil), ShouldBeFalse) 1855 So(EqualStringFloat64Map(nil, a), ShouldBeFalse) 1856 So(EqualStringFloat64Map(a, b), ShouldBeTrue) 1857 1858 var key string 1859 var value float64 1860 for i := 0; i < 100; i++ { 1861 key = strconv.FormatInt(int64(i), 10) 1862 value = float64(i) 1863 a[key] = value 1864 b[key] = value 1865 } 1866 So(EqualStringFloat64Map(a, b), ShouldBeTrue) 1867 delete(a, key) 1868 So(EqualStringFloat64Map(a, b), ShouldBeFalse) 1869 }) 1870 1871 Convey("EqualStringIntMap", t, func() { 1872 So(EqualStringIntMap(nil, nil), ShouldBeTrue) 1873 var a, b = make(map[string]int), make(map[string]int) 1874 So(EqualStringIntMap(a, nil), ShouldBeFalse) 1875 So(EqualStringIntMap(nil, a), ShouldBeFalse) 1876 So(EqualStringIntMap(a, b), ShouldBeTrue) 1877 1878 var key string 1879 var value int 1880 for i := 0; i < 100; i++ { 1881 key = strconv.FormatInt(int64(i), 10) 1882 value = i 1883 a[key] = value 1884 b[key] = value 1885 } 1886 So(EqualStringIntMap(a, b), ShouldBeTrue) 1887 delete(a, key) 1888 So(EqualStringIntMap(a, b), ShouldBeFalse) 1889 }) 1890 1891 Convey("EqualStringInt16Map", t, func() { 1892 So(EqualStringInt16Map(nil, nil), ShouldBeTrue) 1893 var a, b = make(map[string]int16), make(map[string]int16) 1894 So(EqualStringInt16Map(a, nil), ShouldBeFalse) 1895 So(EqualStringInt16Map(nil, a), ShouldBeFalse) 1896 So(EqualStringInt16Map(a, b), ShouldBeTrue) 1897 1898 var key string 1899 var value int16 1900 for i := 0; i < 100; i++ { 1901 key = strconv.FormatInt(int64(i), 10) 1902 value = int16(i) 1903 a[key] = value 1904 b[key] = value 1905 } 1906 So(EqualStringInt16Map(a, b), ShouldBeTrue) 1907 delete(a, key) 1908 So(EqualStringInt16Map(a, b), ShouldBeFalse) 1909 }) 1910 1911 Convey("EqualStringInt32Map", t, func() { 1912 So(EqualStringInt32Map(nil, nil), ShouldBeTrue) 1913 var a, b = make(map[string]int32), make(map[string]int32) 1914 So(EqualStringInt32Map(a, nil), ShouldBeFalse) 1915 So(EqualStringInt32Map(nil, a), ShouldBeFalse) 1916 So(EqualStringInt32Map(a, b), ShouldBeTrue) 1917 1918 var key string 1919 var value int32 1920 for i := 0; i < 100; i++ { 1921 key = strconv.FormatInt(int64(i), 10) 1922 value = int32(i) 1923 a[key] = value 1924 b[key] = value 1925 } 1926 So(EqualStringInt32Map(a, b), ShouldBeTrue) 1927 delete(a, key) 1928 So(EqualStringInt32Map(a, b), ShouldBeFalse) 1929 }) 1930 1931 Convey("EqualStringInt64Map", t, func() { 1932 So(EqualStringInt64Map(nil, nil), ShouldBeTrue) 1933 var a, b = make(map[string]int64), make(map[string]int64) 1934 So(EqualStringInt64Map(a, nil), ShouldBeFalse) 1935 So(EqualStringInt64Map(nil, a), ShouldBeFalse) 1936 So(EqualStringInt64Map(a, b), ShouldBeTrue) 1937 1938 var key string 1939 var value int64 1940 for i := 0; i < 100; i++ { 1941 key = strconv.FormatInt(int64(i), 10) 1942 value = int64(i) 1943 a[key] = value 1944 b[key] = value 1945 } 1946 So(EqualStringInt64Map(a, b), ShouldBeTrue) 1947 delete(a, key) 1948 So(EqualStringInt64Map(a, b), ShouldBeFalse) 1949 }) 1950 1951 Convey("EqualStringInt8Map", t, func() { 1952 So(EqualStringInt8Map(nil, nil), ShouldBeTrue) 1953 var a, b = make(map[string]int8), make(map[string]int8) 1954 So(EqualStringInt8Map(a, nil), ShouldBeFalse) 1955 So(EqualStringInt8Map(nil, a), ShouldBeFalse) 1956 So(EqualStringInt8Map(a, b), ShouldBeTrue) 1957 1958 var key string 1959 var value int8 1960 for i := 0; i < 100; i++ { 1961 key = strconv.FormatInt(int64(i), 10) 1962 value = int8(i) 1963 a[key] = value 1964 b[key] = value 1965 } 1966 So(EqualStringInt8Map(a, b), ShouldBeTrue) 1967 delete(a, key) 1968 So(EqualStringInt8Map(a, b), ShouldBeFalse) 1969 }) 1970 1971 Convey("EqualStringStringMap", t, func() { 1972 So(EqualStringStringMap(nil, nil), ShouldBeTrue) 1973 var a, b = make(map[string]string), make(map[string]string) 1974 So(EqualStringStringMap(a, nil), ShouldBeFalse) 1975 So(EqualStringStringMap(nil, a), ShouldBeFalse) 1976 So(EqualStringStringMap(a, b), ShouldBeTrue) 1977 1978 var key string 1979 var value string 1980 for i := 0; i < 100; i++ { 1981 key = strconv.FormatInt(int64(i), 10) 1982 value = strconv.FormatInt(int64(i), 10) 1983 a[key] = value 1984 b[key] = value 1985 } 1986 So(EqualStringStringMap(a, b), ShouldBeTrue) 1987 delete(a, key) 1988 So(EqualStringStringMap(a, b), ShouldBeFalse) 1989 }) 1990 1991 Convey("EqualStringUintMap", t, func() { 1992 So(EqualStringUintMap(nil, nil), ShouldBeTrue) 1993 var a, b = make(map[string]uint), make(map[string]uint) 1994 So(EqualStringUintMap(a, nil), ShouldBeFalse) 1995 So(EqualStringUintMap(nil, a), ShouldBeFalse) 1996 So(EqualStringUintMap(a, b), ShouldBeTrue) 1997 1998 var key string 1999 var value uint 2000 for i := 0; i < 100; i++ { 2001 key = strconv.FormatInt(int64(i), 10) 2002 value = uint(i) 2003 a[key] = value 2004 b[key] = value 2005 } 2006 So(EqualStringUintMap(a, b), ShouldBeTrue) 2007 delete(a, key) 2008 So(EqualStringUintMap(a, b), ShouldBeFalse) 2009 }) 2010 2011 Convey("EqualStringUint16Map", t, func() { 2012 So(EqualStringUint16Map(nil, nil), ShouldBeTrue) 2013 var a, b = make(map[string]uint16), make(map[string]uint16) 2014 So(EqualStringUint16Map(a, nil), ShouldBeFalse) 2015 So(EqualStringUint16Map(nil, a), ShouldBeFalse) 2016 So(EqualStringUint16Map(a, b), ShouldBeTrue) 2017 2018 var key string 2019 var value uint16 2020 for i := 0; i < 100; i++ { 2021 key = strconv.FormatInt(int64(i), 10) 2022 value = uint16(i) 2023 a[key] = value 2024 b[key] = value 2025 } 2026 So(EqualStringUint16Map(a, b), ShouldBeTrue) 2027 delete(a, key) 2028 So(EqualStringUint16Map(a, b), ShouldBeFalse) 2029 }) 2030 2031 Convey("EqualStringUint32Map", t, func() { 2032 So(EqualStringUint32Map(nil, nil), ShouldBeTrue) 2033 var a, b = make(map[string]uint32), make(map[string]uint32) 2034 So(EqualStringUint32Map(a, nil), ShouldBeFalse) 2035 So(EqualStringUint32Map(nil, a), ShouldBeFalse) 2036 So(EqualStringUint32Map(a, b), ShouldBeTrue) 2037 2038 var key string 2039 var value uint32 2040 for i := 0; i < 100; i++ { 2041 key = strconv.FormatInt(int64(i), 10) 2042 value = uint32(i) 2043 a[key] = value 2044 b[key] = value 2045 } 2046 So(EqualStringUint32Map(a, b), ShouldBeTrue) 2047 delete(a, key) 2048 So(EqualStringUint32Map(a, b), ShouldBeFalse) 2049 }) 2050 2051 Convey("EqualStringUint64Map", t, func() { 2052 So(EqualStringUint64Map(nil, nil), ShouldBeTrue) 2053 var a, b = make(map[string]uint64), make(map[string]uint64) 2054 So(EqualStringUint64Map(a, nil), ShouldBeFalse) 2055 So(EqualStringUint64Map(nil, a), ShouldBeFalse) 2056 So(EqualStringUint64Map(a, b), ShouldBeTrue) 2057 2058 var key string 2059 var value uint64 2060 for i := 0; i < 100; i++ { 2061 key = strconv.FormatInt(int64(i), 10) 2062 value = uint64(i) 2063 a[key] = value 2064 b[key] = value 2065 } 2066 So(EqualStringUint64Map(a, b), ShouldBeTrue) 2067 delete(a, key) 2068 So(EqualStringUint64Map(a, b), ShouldBeFalse) 2069 }) 2070 2071 Convey("EqualStringUint8Map", t, func() { 2072 So(EqualStringUint8Map(nil, nil), ShouldBeTrue) 2073 var a, b = make(map[string]uint8), make(map[string]uint8) 2074 So(EqualStringUint8Map(a, nil), ShouldBeFalse) 2075 So(EqualStringUint8Map(nil, a), ShouldBeFalse) 2076 So(EqualStringUint8Map(a, b), ShouldBeTrue) 2077 2078 var key string 2079 var value uint8 2080 for i := 0; i < 100; i++ { 2081 key = strconv.FormatInt(int64(i), 10) 2082 value = uint8(i) 2083 a[key] = value 2084 b[key] = value 2085 } 2086 So(EqualStringUint8Map(a, b), ShouldBeTrue) 2087 delete(a, key) 2088 So(EqualStringUint8Map(a, b), ShouldBeFalse) 2089 }) 2090 2091 Convey("EqualUintFloat32Map", t, func() { 2092 So(EqualUintFloat32Map(nil, nil), ShouldBeTrue) 2093 var a, b = make(map[uint]float32), make(map[uint]float32) 2094 So(EqualUintFloat32Map(a, nil), ShouldBeFalse) 2095 So(EqualUintFloat32Map(nil, a), ShouldBeFalse) 2096 So(EqualUintFloat32Map(a, b), ShouldBeTrue) 2097 2098 var key uint 2099 var value float32 2100 for i := 0; i < 100; i++ { 2101 key = uint(i) 2102 value = float32(i) 2103 a[key] = value 2104 b[key] = value 2105 } 2106 So(EqualUintFloat32Map(a, b), ShouldBeTrue) 2107 delete(a, key) 2108 So(EqualUintFloat32Map(a, b), ShouldBeFalse) 2109 }) 2110 2111 Convey("EqualUintFloat64Map", t, func() { 2112 So(EqualUintFloat64Map(nil, nil), ShouldBeTrue) 2113 var a, b = make(map[uint]float64), make(map[uint]float64) 2114 So(EqualUintFloat64Map(a, nil), ShouldBeFalse) 2115 So(EqualUintFloat64Map(nil, a), ShouldBeFalse) 2116 So(EqualUintFloat64Map(a, b), ShouldBeTrue) 2117 2118 var key uint 2119 var value float64 2120 for i := 0; i < 100; i++ { 2121 key = uint(i) 2122 value = float64(i) 2123 a[key] = value 2124 b[key] = value 2125 } 2126 So(EqualUintFloat64Map(a, b), ShouldBeTrue) 2127 delete(a, key) 2128 So(EqualUintFloat64Map(a, b), ShouldBeFalse) 2129 }) 2130 2131 Convey("EqualUintIntMap", t, func() { 2132 So(EqualUintIntMap(nil, nil), ShouldBeTrue) 2133 var a, b = make(map[uint]int), make(map[uint]int) 2134 So(EqualUintIntMap(a, nil), ShouldBeFalse) 2135 So(EqualUintIntMap(nil, a), ShouldBeFalse) 2136 So(EqualUintIntMap(a, b), ShouldBeTrue) 2137 2138 var key uint 2139 var value int 2140 for i := 0; i < 100; i++ { 2141 key = uint(i) 2142 value = i 2143 a[key] = value 2144 b[key] = value 2145 } 2146 So(EqualUintIntMap(a, b), ShouldBeTrue) 2147 delete(a, key) 2148 So(EqualUintIntMap(a, b), ShouldBeFalse) 2149 }) 2150 2151 Convey("EqualUintInt16Map", t, func() { 2152 So(EqualUintInt16Map(nil, nil), ShouldBeTrue) 2153 var a, b = make(map[uint]int16), make(map[uint]int16) 2154 So(EqualUintInt16Map(a, nil), ShouldBeFalse) 2155 So(EqualUintInt16Map(nil, a), ShouldBeFalse) 2156 So(EqualUintInt16Map(a, b), ShouldBeTrue) 2157 2158 var key uint 2159 var value int16 2160 for i := 0; i < 100; i++ { 2161 key = uint(i) 2162 value = int16(i) 2163 a[key] = value 2164 b[key] = value 2165 } 2166 So(EqualUintInt16Map(a, b), ShouldBeTrue) 2167 delete(a, key) 2168 So(EqualUintInt16Map(a, b), ShouldBeFalse) 2169 }) 2170 2171 Convey("EqualUintInt32Map", t, func() { 2172 So(EqualUintInt32Map(nil, nil), ShouldBeTrue) 2173 var a, b = make(map[uint]int32), make(map[uint]int32) 2174 So(EqualUintInt32Map(a, nil), ShouldBeFalse) 2175 So(EqualUintInt32Map(nil, a), ShouldBeFalse) 2176 So(EqualUintInt32Map(a, b), ShouldBeTrue) 2177 2178 var key uint 2179 var value int32 2180 for i := 0; i < 100; i++ { 2181 key = uint(i) 2182 value = int32(i) 2183 a[key] = value 2184 b[key] = value 2185 } 2186 So(EqualUintInt32Map(a, b), ShouldBeTrue) 2187 delete(a, key) 2188 So(EqualUintInt32Map(a, b), ShouldBeFalse) 2189 }) 2190 2191 Convey("EqualUintInt64Map", t, func() { 2192 So(EqualUintInt64Map(nil, nil), ShouldBeTrue) 2193 var a, b = make(map[uint]int64), make(map[uint]int64) 2194 So(EqualUintInt64Map(a, nil), ShouldBeFalse) 2195 So(EqualUintInt64Map(nil, a), ShouldBeFalse) 2196 So(EqualUintInt64Map(a, b), ShouldBeTrue) 2197 2198 var key uint 2199 var value int64 2200 for i := 0; i < 100; i++ { 2201 key = uint(i) 2202 value = int64(i) 2203 a[key] = value 2204 b[key] = value 2205 } 2206 So(EqualUintInt64Map(a, b), ShouldBeTrue) 2207 delete(a, key) 2208 So(EqualUintInt64Map(a, b), ShouldBeFalse) 2209 }) 2210 2211 Convey("EqualUintInt8Map", t, func() { 2212 So(EqualUintInt8Map(nil, nil), ShouldBeTrue) 2213 var a, b = make(map[uint]int8), make(map[uint]int8) 2214 So(EqualUintInt8Map(a, nil), ShouldBeFalse) 2215 So(EqualUintInt8Map(nil, a), ShouldBeFalse) 2216 So(EqualUintInt8Map(a, b), ShouldBeTrue) 2217 2218 var key uint 2219 var value int8 2220 for i := 0; i < 100; i++ { 2221 key = uint(i) 2222 value = int8(i) 2223 a[key] = value 2224 b[key] = value 2225 } 2226 So(EqualUintInt8Map(a, b), ShouldBeTrue) 2227 delete(a, key) 2228 So(EqualUintInt8Map(a, b), ShouldBeFalse) 2229 }) 2230 2231 Convey("EqualUintStringMap", t, func() { 2232 So(EqualUintStringMap(nil, nil), ShouldBeTrue) 2233 var a, b = make(map[uint]string), make(map[uint]string) 2234 So(EqualUintStringMap(a, nil), ShouldBeFalse) 2235 So(EqualUintStringMap(nil, a), ShouldBeFalse) 2236 So(EqualUintStringMap(a, b), ShouldBeTrue) 2237 2238 var key uint 2239 var value string 2240 for i := 0; i < 100; i++ { 2241 key = uint(i) 2242 value = strconv.FormatInt(int64(i), 10) 2243 a[key] = value 2244 b[key] = value 2245 } 2246 So(EqualUintStringMap(a, b), ShouldBeTrue) 2247 delete(a, key) 2248 So(EqualUintStringMap(a, b), ShouldBeFalse) 2249 }) 2250 2251 Convey("EqualUintUintMap", t, func() { 2252 So(EqualUintUintMap(nil, nil), ShouldBeTrue) 2253 var a, b = make(map[uint]uint), make(map[uint]uint) 2254 So(EqualUintUintMap(a, nil), ShouldBeFalse) 2255 So(EqualUintUintMap(nil, a), ShouldBeFalse) 2256 So(EqualUintUintMap(a, b), ShouldBeTrue) 2257 2258 var key uint 2259 var value uint 2260 for i := 0; i < 100; i++ { 2261 key = uint(i) 2262 value = uint(i) 2263 a[key] = value 2264 b[key] = value 2265 } 2266 So(EqualUintUintMap(a, b), ShouldBeTrue) 2267 delete(a, key) 2268 So(EqualUintUintMap(a, b), ShouldBeFalse) 2269 }) 2270 2271 Convey("EqualUintUint16Map", t, func() { 2272 So(EqualUintUint16Map(nil, nil), ShouldBeTrue) 2273 var a, b = make(map[uint]uint16), make(map[uint]uint16) 2274 So(EqualUintUint16Map(a, nil), ShouldBeFalse) 2275 So(EqualUintUint16Map(nil, a), ShouldBeFalse) 2276 So(EqualUintUint16Map(a, b), ShouldBeTrue) 2277 2278 var key uint 2279 var value uint16 2280 for i := 0; i < 100; i++ { 2281 key = uint(i) 2282 value = uint16(i) 2283 a[key] = value 2284 b[key] = value 2285 } 2286 So(EqualUintUint16Map(a, b), ShouldBeTrue) 2287 delete(a, key) 2288 So(EqualUintUint16Map(a, b), ShouldBeFalse) 2289 }) 2290 2291 Convey("EqualUintUint32Map", t, func() { 2292 So(EqualUintUint32Map(nil, nil), ShouldBeTrue) 2293 var a, b = make(map[uint]uint32), make(map[uint]uint32) 2294 So(EqualUintUint32Map(a, nil), ShouldBeFalse) 2295 So(EqualUintUint32Map(nil, a), ShouldBeFalse) 2296 So(EqualUintUint32Map(a, b), ShouldBeTrue) 2297 2298 var key uint 2299 var value uint32 2300 for i := 0; i < 100; i++ { 2301 key = uint(i) 2302 value = uint32(i) 2303 a[key] = value 2304 b[key] = value 2305 } 2306 So(EqualUintUint32Map(a, b), ShouldBeTrue) 2307 delete(a, key) 2308 So(EqualUintUint32Map(a, b), ShouldBeFalse) 2309 }) 2310 2311 Convey("EqualUintUint64Map", t, func() { 2312 So(EqualUintUint64Map(nil, nil), ShouldBeTrue) 2313 var a, b = make(map[uint]uint64), make(map[uint]uint64) 2314 So(EqualUintUint64Map(a, nil), ShouldBeFalse) 2315 So(EqualUintUint64Map(nil, a), ShouldBeFalse) 2316 So(EqualUintUint64Map(a, b), ShouldBeTrue) 2317 2318 var key uint 2319 var value uint64 2320 for i := 0; i < 100; i++ { 2321 key = uint(i) 2322 value = uint64(i) 2323 a[key] = value 2324 b[key] = value 2325 } 2326 So(EqualUintUint64Map(a, b), ShouldBeTrue) 2327 delete(a, key) 2328 So(EqualUintUint64Map(a, b), ShouldBeFalse) 2329 }) 2330 2331 Convey("EqualUintUint8Map", t, func() { 2332 So(EqualUintUint8Map(nil, nil), ShouldBeTrue) 2333 var a, b = make(map[uint]uint8), make(map[uint]uint8) 2334 So(EqualUintUint8Map(a, nil), ShouldBeFalse) 2335 So(EqualUintUint8Map(nil, a), ShouldBeFalse) 2336 So(EqualUintUint8Map(a, b), ShouldBeTrue) 2337 2338 var key uint 2339 var value uint8 2340 for i := 0; i < 100; i++ { 2341 key = uint(i) 2342 value = uint8(i) 2343 a[key] = value 2344 b[key] = value 2345 } 2346 So(EqualUintUint8Map(a, b), ShouldBeTrue) 2347 delete(a, key) 2348 So(EqualUintUint8Map(a, b), ShouldBeFalse) 2349 }) 2350 2351 Convey("EqualUint16Float32Map", t, func() { 2352 So(EqualUint16Float32Map(nil, nil), ShouldBeTrue) 2353 var a, b = make(map[uint16]float32), make(map[uint16]float32) 2354 So(EqualUint16Float32Map(a, nil), ShouldBeFalse) 2355 So(EqualUint16Float32Map(nil, a), ShouldBeFalse) 2356 So(EqualUint16Float32Map(a, b), ShouldBeTrue) 2357 2358 var key uint16 2359 var value float32 2360 for i := 0; i < 100; i++ { 2361 key = uint16(i) 2362 value = float32(i) 2363 a[key] = value 2364 b[key] = value 2365 } 2366 So(EqualUint16Float32Map(a, b), ShouldBeTrue) 2367 delete(a, key) 2368 So(EqualUint16Float32Map(a, b), ShouldBeFalse) 2369 }) 2370 2371 Convey("EqualUint16Float64Map", t, func() { 2372 So(EqualUint16Float64Map(nil, nil), ShouldBeTrue) 2373 var a, b = make(map[uint16]float64), make(map[uint16]float64) 2374 So(EqualUint16Float64Map(a, nil), ShouldBeFalse) 2375 So(EqualUint16Float64Map(nil, a), ShouldBeFalse) 2376 So(EqualUint16Float64Map(a, b), ShouldBeTrue) 2377 2378 var key uint16 2379 var value float64 2380 for i := 0; i < 100; i++ { 2381 key = uint16(i) 2382 value = float64(i) 2383 a[key] = value 2384 b[key] = value 2385 } 2386 So(EqualUint16Float64Map(a, b), ShouldBeTrue) 2387 delete(a, key) 2388 So(EqualUint16Float64Map(a, b), ShouldBeFalse) 2389 }) 2390 2391 Convey("EqualUint16IntMap", t, func() { 2392 So(EqualUint16IntMap(nil, nil), ShouldBeTrue) 2393 var a, b = make(map[uint16]int), make(map[uint16]int) 2394 So(EqualUint16IntMap(a, nil), ShouldBeFalse) 2395 So(EqualUint16IntMap(nil, a), ShouldBeFalse) 2396 So(EqualUint16IntMap(a, b), ShouldBeTrue) 2397 2398 var key uint16 2399 var value int 2400 for i := 0; i < 100; i++ { 2401 key = uint16(i) 2402 value = i 2403 a[key] = value 2404 b[key] = value 2405 } 2406 So(EqualUint16IntMap(a, b), ShouldBeTrue) 2407 delete(a, key) 2408 So(EqualUint16IntMap(a, b), ShouldBeFalse) 2409 }) 2410 2411 Convey("EqualUint16Int16Map", t, func() { 2412 So(EqualUint16Int16Map(nil, nil), ShouldBeTrue) 2413 var a, b = make(map[uint16]int16), make(map[uint16]int16) 2414 So(EqualUint16Int16Map(a, nil), ShouldBeFalse) 2415 So(EqualUint16Int16Map(nil, a), ShouldBeFalse) 2416 So(EqualUint16Int16Map(a, b), ShouldBeTrue) 2417 2418 var key uint16 2419 var value int16 2420 for i := 0; i < 100; i++ { 2421 key = uint16(i) 2422 value = int16(i) 2423 a[key] = value 2424 b[key] = value 2425 } 2426 So(EqualUint16Int16Map(a, b), ShouldBeTrue) 2427 delete(a, key) 2428 So(EqualUint16Int16Map(a, b), ShouldBeFalse) 2429 }) 2430 2431 Convey("EqualUint16Int32Map", t, func() { 2432 So(EqualUint16Int32Map(nil, nil), ShouldBeTrue) 2433 var a, b = make(map[uint16]int32), make(map[uint16]int32) 2434 So(EqualUint16Int32Map(a, nil), ShouldBeFalse) 2435 So(EqualUint16Int32Map(nil, a), ShouldBeFalse) 2436 So(EqualUint16Int32Map(a, b), ShouldBeTrue) 2437 2438 var key uint16 2439 var value int32 2440 for i := 0; i < 100; i++ { 2441 key = uint16(i) 2442 value = int32(i) 2443 a[key] = value 2444 b[key] = value 2445 } 2446 So(EqualUint16Int32Map(a, b), ShouldBeTrue) 2447 delete(a, key) 2448 So(EqualUint16Int32Map(a, b), ShouldBeFalse) 2449 }) 2450 2451 Convey("EqualUint16Int64Map", t, func() { 2452 So(EqualUint16Int64Map(nil, nil), ShouldBeTrue) 2453 var a, b = make(map[uint16]int64), make(map[uint16]int64) 2454 So(EqualUint16Int64Map(a, nil), ShouldBeFalse) 2455 So(EqualUint16Int64Map(nil, a), ShouldBeFalse) 2456 So(EqualUint16Int64Map(a, b), ShouldBeTrue) 2457 2458 var key uint16 2459 var value int64 2460 for i := 0; i < 100; i++ { 2461 key = uint16(i) 2462 value = int64(i) 2463 a[key] = value 2464 b[key] = value 2465 } 2466 So(EqualUint16Int64Map(a, b), ShouldBeTrue) 2467 delete(a, key) 2468 So(EqualUint16Int64Map(a, b), ShouldBeFalse) 2469 }) 2470 2471 Convey("EqualUint16Int8Map", t, func() { 2472 So(EqualUint16Int8Map(nil, nil), ShouldBeTrue) 2473 var a, b = make(map[uint16]int8), make(map[uint16]int8) 2474 So(EqualUint16Int8Map(a, nil), ShouldBeFalse) 2475 So(EqualUint16Int8Map(nil, a), ShouldBeFalse) 2476 So(EqualUint16Int8Map(a, b), ShouldBeTrue) 2477 2478 var key uint16 2479 var value int8 2480 for i := 0; i < 100; i++ { 2481 key = uint16(i) 2482 value = int8(i) 2483 a[key] = value 2484 b[key] = value 2485 } 2486 So(EqualUint16Int8Map(a, b), ShouldBeTrue) 2487 delete(a, key) 2488 So(EqualUint16Int8Map(a, b), ShouldBeFalse) 2489 }) 2490 2491 Convey("EqualUint16StringMap", t, func() { 2492 So(EqualUint16StringMap(nil, nil), ShouldBeTrue) 2493 var a, b = make(map[uint16]string), make(map[uint16]string) 2494 So(EqualUint16StringMap(a, nil), ShouldBeFalse) 2495 So(EqualUint16StringMap(nil, a), ShouldBeFalse) 2496 So(EqualUint16StringMap(a, b), ShouldBeTrue) 2497 2498 var key uint16 2499 var value string 2500 for i := 0; i < 100; i++ { 2501 key = uint16(i) 2502 value = strconv.FormatInt(int64(i), 10) 2503 a[key] = value 2504 b[key] = value 2505 } 2506 So(EqualUint16StringMap(a, b), ShouldBeTrue) 2507 delete(a, key) 2508 So(EqualUint16StringMap(a, b), ShouldBeFalse) 2509 }) 2510 2511 Convey("EqualUint16UintMap", t, func() { 2512 So(EqualUint16UintMap(nil, nil), ShouldBeTrue) 2513 var a, b = make(map[uint16]uint), make(map[uint16]uint) 2514 So(EqualUint16UintMap(a, nil), ShouldBeFalse) 2515 So(EqualUint16UintMap(nil, a), ShouldBeFalse) 2516 So(EqualUint16UintMap(a, b), ShouldBeTrue) 2517 2518 var key uint16 2519 var value uint 2520 for i := 0; i < 100; i++ { 2521 key = uint16(i) 2522 value = uint(i) 2523 a[key] = value 2524 b[key] = value 2525 } 2526 So(EqualUint16UintMap(a, b), ShouldBeTrue) 2527 delete(a, key) 2528 So(EqualUint16UintMap(a, b), ShouldBeFalse) 2529 }) 2530 2531 Convey("EqualUint16Uint16Map", t, func() { 2532 So(EqualUint16Uint16Map(nil, nil), ShouldBeTrue) 2533 var a, b = make(map[uint16]uint16), make(map[uint16]uint16) 2534 So(EqualUint16Uint16Map(a, nil), ShouldBeFalse) 2535 So(EqualUint16Uint16Map(nil, a), ShouldBeFalse) 2536 So(EqualUint16Uint16Map(a, b), ShouldBeTrue) 2537 2538 var key uint16 2539 var value uint16 2540 for i := 0; i < 100; i++ { 2541 key = uint16(i) 2542 value = uint16(i) 2543 a[key] = value 2544 b[key] = value 2545 } 2546 So(EqualUint16Uint16Map(a, b), ShouldBeTrue) 2547 delete(a, key) 2548 So(EqualUint16Uint16Map(a, b), ShouldBeFalse) 2549 }) 2550 2551 Convey("EqualUint16Uint32Map", t, func() { 2552 So(EqualUint16Uint32Map(nil, nil), ShouldBeTrue) 2553 var a, b = make(map[uint16]uint32), make(map[uint16]uint32) 2554 So(EqualUint16Uint32Map(a, nil), ShouldBeFalse) 2555 So(EqualUint16Uint32Map(nil, a), ShouldBeFalse) 2556 So(EqualUint16Uint32Map(a, b), ShouldBeTrue) 2557 2558 var key uint16 2559 var value uint32 2560 for i := 0; i < 100; i++ { 2561 key = uint16(i) 2562 value = uint32(i) 2563 a[key] = value 2564 b[key] = value 2565 } 2566 So(EqualUint16Uint32Map(a, b), ShouldBeTrue) 2567 delete(a, key) 2568 So(EqualUint16Uint32Map(a, b), ShouldBeFalse) 2569 }) 2570 2571 Convey("EqualUint16Uint64Map", t, func() { 2572 So(EqualUint16Uint64Map(nil, nil), ShouldBeTrue) 2573 var a, b = make(map[uint16]uint64), make(map[uint16]uint64) 2574 So(EqualUint16Uint64Map(a, nil), ShouldBeFalse) 2575 So(EqualUint16Uint64Map(nil, a), ShouldBeFalse) 2576 So(EqualUint16Uint64Map(a, b), ShouldBeTrue) 2577 2578 var key uint16 2579 var value uint64 2580 for i := 0; i < 100; i++ { 2581 key = uint16(i) 2582 value = uint64(i) 2583 a[key] = value 2584 b[key] = value 2585 } 2586 So(EqualUint16Uint64Map(a, b), ShouldBeTrue) 2587 delete(a, key) 2588 So(EqualUint16Uint64Map(a, b), ShouldBeFalse) 2589 }) 2590 2591 Convey("EqualUint16Uint8Map", t, func() { 2592 So(EqualUint16Uint8Map(nil, nil), ShouldBeTrue) 2593 var a, b = make(map[uint16]uint8), make(map[uint16]uint8) 2594 So(EqualUint16Uint8Map(a, nil), ShouldBeFalse) 2595 So(EqualUint16Uint8Map(nil, a), ShouldBeFalse) 2596 So(EqualUint16Uint8Map(a, b), ShouldBeTrue) 2597 2598 var key uint16 2599 var value uint8 2600 for i := 0; i < 100; i++ { 2601 key = uint16(i) 2602 value = uint8(i) 2603 a[key] = value 2604 b[key] = value 2605 } 2606 So(EqualUint16Uint8Map(a, b), ShouldBeTrue) 2607 delete(a, key) 2608 So(EqualUint16Uint8Map(a, b), ShouldBeFalse) 2609 }) 2610 2611 Convey("EqualUint32Float32Map", t, func() { 2612 So(EqualUint32Float32Map(nil, nil), ShouldBeTrue) 2613 var a, b = make(map[uint32]float32), make(map[uint32]float32) 2614 So(EqualUint32Float32Map(a, nil), ShouldBeFalse) 2615 So(EqualUint32Float32Map(nil, a), ShouldBeFalse) 2616 So(EqualUint32Float32Map(a, b), ShouldBeTrue) 2617 2618 var key uint32 2619 var value float32 2620 for i := 0; i < 100; i++ { 2621 key = uint32(i) 2622 value = float32(i) 2623 a[key] = value 2624 b[key] = value 2625 } 2626 So(EqualUint32Float32Map(a, b), ShouldBeTrue) 2627 delete(a, key) 2628 So(EqualUint32Float32Map(a, b), ShouldBeFalse) 2629 }) 2630 2631 Convey("EqualUint32Float64Map", t, func() { 2632 So(EqualUint32Float64Map(nil, nil), ShouldBeTrue) 2633 var a, b = make(map[uint32]float64), make(map[uint32]float64) 2634 So(EqualUint32Float64Map(a, nil), ShouldBeFalse) 2635 So(EqualUint32Float64Map(nil, a), ShouldBeFalse) 2636 So(EqualUint32Float64Map(a, b), ShouldBeTrue) 2637 2638 var key uint32 2639 var value float64 2640 for i := 0; i < 100; i++ { 2641 key = uint32(i) 2642 value = float64(i) 2643 a[key] = value 2644 b[key] = value 2645 } 2646 So(EqualUint32Float64Map(a, b), ShouldBeTrue) 2647 delete(a, key) 2648 So(EqualUint32Float64Map(a, b), ShouldBeFalse) 2649 }) 2650 2651 Convey("EqualUint32IntMap", t, func() { 2652 So(EqualUint32IntMap(nil, nil), ShouldBeTrue) 2653 var a, b = make(map[uint32]int), make(map[uint32]int) 2654 So(EqualUint32IntMap(a, nil), ShouldBeFalse) 2655 So(EqualUint32IntMap(nil, a), ShouldBeFalse) 2656 So(EqualUint32IntMap(a, b), ShouldBeTrue) 2657 2658 var key uint32 2659 var value int 2660 for i := 0; i < 100; i++ { 2661 key = uint32(i) 2662 value = i 2663 a[key] = value 2664 b[key] = value 2665 } 2666 So(EqualUint32IntMap(a, b), ShouldBeTrue) 2667 delete(a, key) 2668 So(EqualUint32IntMap(a, b), ShouldBeFalse) 2669 }) 2670 2671 Convey("EqualUint32Int16Map", t, func() { 2672 So(EqualUint32Int16Map(nil, nil), ShouldBeTrue) 2673 var a, b = make(map[uint32]int16), make(map[uint32]int16) 2674 So(EqualUint32Int16Map(a, nil), ShouldBeFalse) 2675 So(EqualUint32Int16Map(nil, a), ShouldBeFalse) 2676 So(EqualUint32Int16Map(a, b), ShouldBeTrue) 2677 2678 var key uint32 2679 var value int16 2680 for i := 0; i < 100; i++ { 2681 key = uint32(i) 2682 value = int16(i) 2683 a[key] = value 2684 b[key] = value 2685 } 2686 So(EqualUint32Int16Map(a, b), ShouldBeTrue) 2687 delete(a, key) 2688 So(EqualUint32Int16Map(a, b), ShouldBeFalse) 2689 }) 2690 2691 Convey("EqualUint32Int32Map", t, func() { 2692 So(EqualUint32Int32Map(nil, nil), ShouldBeTrue) 2693 var a, b = make(map[uint32]int32), make(map[uint32]int32) 2694 So(EqualUint32Int32Map(a, nil), ShouldBeFalse) 2695 So(EqualUint32Int32Map(nil, a), ShouldBeFalse) 2696 So(EqualUint32Int32Map(a, b), ShouldBeTrue) 2697 2698 var key uint32 2699 var value int32 2700 for i := 0; i < 100; i++ { 2701 key = uint32(i) 2702 value = int32(i) 2703 a[key] = value 2704 b[key] = value 2705 } 2706 So(EqualUint32Int32Map(a, b), ShouldBeTrue) 2707 delete(a, key) 2708 So(EqualUint32Int32Map(a, b), ShouldBeFalse) 2709 }) 2710 2711 Convey("EqualUint32Int64Map", t, func() { 2712 So(EqualUint32Int64Map(nil, nil), ShouldBeTrue) 2713 var a, b = make(map[uint32]int64), make(map[uint32]int64) 2714 So(EqualUint32Int64Map(a, nil), ShouldBeFalse) 2715 So(EqualUint32Int64Map(nil, a), ShouldBeFalse) 2716 So(EqualUint32Int64Map(a, b), ShouldBeTrue) 2717 2718 var key uint32 2719 var value int64 2720 for i := 0; i < 100; i++ { 2721 key = uint32(i) 2722 value = int64(i) 2723 a[key] = value 2724 b[key] = value 2725 } 2726 So(EqualUint32Int64Map(a, b), ShouldBeTrue) 2727 delete(a, key) 2728 So(EqualUint32Int64Map(a, b), ShouldBeFalse) 2729 }) 2730 2731 Convey("EqualUint32Int8Map", t, func() { 2732 So(EqualUint32Int8Map(nil, nil), ShouldBeTrue) 2733 var a, b = make(map[uint32]int8), make(map[uint32]int8) 2734 So(EqualUint32Int8Map(a, nil), ShouldBeFalse) 2735 So(EqualUint32Int8Map(nil, a), ShouldBeFalse) 2736 So(EqualUint32Int8Map(a, b), ShouldBeTrue) 2737 2738 var key uint32 2739 var value int8 2740 for i := 0; i < 100; i++ { 2741 key = uint32(i) 2742 value = int8(i) 2743 a[key] = value 2744 b[key] = value 2745 } 2746 So(EqualUint32Int8Map(a, b), ShouldBeTrue) 2747 delete(a, key) 2748 So(EqualUint32Int8Map(a, b), ShouldBeFalse) 2749 }) 2750 2751 Convey("EqualUint32StringMap", t, func() { 2752 So(EqualUint32StringMap(nil, nil), ShouldBeTrue) 2753 var a, b = make(map[uint32]string), make(map[uint32]string) 2754 So(EqualUint32StringMap(a, nil), ShouldBeFalse) 2755 So(EqualUint32StringMap(nil, a), ShouldBeFalse) 2756 So(EqualUint32StringMap(a, b), ShouldBeTrue) 2757 2758 var key uint32 2759 var value string 2760 for i := 0; i < 100; i++ { 2761 key = uint32(i) 2762 value = strconv.FormatInt(int64(i), 10) 2763 a[key] = value 2764 b[key] = value 2765 } 2766 So(EqualUint32StringMap(a, b), ShouldBeTrue) 2767 delete(a, key) 2768 So(EqualUint32StringMap(a, b), ShouldBeFalse) 2769 }) 2770 2771 Convey("EqualUint32UintMap", t, func() { 2772 So(EqualUint32UintMap(nil, nil), ShouldBeTrue) 2773 var a, b = make(map[uint32]uint), make(map[uint32]uint) 2774 So(EqualUint32UintMap(a, nil), ShouldBeFalse) 2775 So(EqualUint32UintMap(nil, a), ShouldBeFalse) 2776 So(EqualUint32UintMap(a, b), ShouldBeTrue) 2777 2778 var key uint32 2779 var value uint 2780 for i := 0; i < 100; i++ { 2781 key = uint32(i) 2782 value = uint(i) 2783 a[key] = value 2784 b[key] = value 2785 } 2786 So(EqualUint32UintMap(a, b), ShouldBeTrue) 2787 delete(a, key) 2788 So(EqualUint32UintMap(a, b), ShouldBeFalse) 2789 }) 2790 2791 Convey("EqualUint32Uint16Map", t, func() { 2792 So(EqualUint32Uint16Map(nil, nil), ShouldBeTrue) 2793 var a, b = make(map[uint32]uint16), make(map[uint32]uint16) 2794 So(EqualUint32Uint16Map(a, nil), ShouldBeFalse) 2795 So(EqualUint32Uint16Map(nil, a), ShouldBeFalse) 2796 So(EqualUint32Uint16Map(a, b), ShouldBeTrue) 2797 2798 var key uint32 2799 var value uint16 2800 for i := 0; i < 100; i++ { 2801 key = uint32(i) 2802 value = uint16(i) 2803 a[key] = value 2804 b[key] = value 2805 } 2806 So(EqualUint32Uint16Map(a, b), ShouldBeTrue) 2807 delete(a, key) 2808 So(EqualUint32Uint16Map(a, b), ShouldBeFalse) 2809 }) 2810 2811 Convey("EqualUint32Uint32Map", t, func() { 2812 So(EqualUint32Uint32Map(nil, nil), ShouldBeTrue) 2813 var a, b = make(map[uint32]uint32), make(map[uint32]uint32) 2814 So(EqualUint32Uint32Map(a, nil), ShouldBeFalse) 2815 So(EqualUint32Uint32Map(nil, a), ShouldBeFalse) 2816 So(EqualUint32Uint32Map(a, b), ShouldBeTrue) 2817 2818 var key uint32 2819 var value uint32 2820 for i := 0; i < 100; i++ { 2821 key = uint32(i) 2822 value = uint32(i) 2823 a[key] = value 2824 b[key] = value 2825 } 2826 So(EqualUint32Uint32Map(a, b), ShouldBeTrue) 2827 delete(a, key) 2828 So(EqualUint32Uint32Map(a, b), ShouldBeFalse) 2829 }) 2830 2831 Convey("EqualUint32Uint64Map", t, func() { 2832 So(EqualUint32Uint64Map(nil, nil), ShouldBeTrue) 2833 var a, b = make(map[uint32]uint64), make(map[uint32]uint64) 2834 So(EqualUint32Uint64Map(a, nil), ShouldBeFalse) 2835 So(EqualUint32Uint64Map(nil, a), ShouldBeFalse) 2836 So(EqualUint32Uint64Map(a, b), ShouldBeTrue) 2837 2838 var key uint32 2839 var value uint64 2840 for i := 0; i < 100; i++ { 2841 key = uint32(i) 2842 value = uint64(i) 2843 a[key] = value 2844 b[key] = value 2845 } 2846 So(EqualUint32Uint64Map(a, b), ShouldBeTrue) 2847 delete(a, key) 2848 So(EqualUint32Uint64Map(a, b), ShouldBeFalse) 2849 }) 2850 2851 Convey("EqualUint32Uint8Map", t, func() { 2852 So(EqualUint32Uint8Map(nil, nil), ShouldBeTrue) 2853 var a, b = make(map[uint32]uint8), make(map[uint32]uint8) 2854 So(EqualUint32Uint8Map(a, nil), ShouldBeFalse) 2855 So(EqualUint32Uint8Map(nil, a), ShouldBeFalse) 2856 So(EqualUint32Uint8Map(a, b), ShouldBeTrue) 2857 2858 var key uint32 2859 var value uint8 2860 for i := 0; i < 100; i++ { 2861 key = uint32(i) 2862 value = uint8(i) 2863 a[key] = value 2864 b[key] = value 2865 } 2866 So(EqualUint32Uint8Map(a, b), ShouldBeTrue) 2867 delete(a, key) 2868 So(EqualUint32Uint8Map(a, b), ShouldBeFalse) 2869 }) 2870 2871 Convey("EqualUint64Float32Map", t, func() { 2872 So(EqualUint64Float32Map(nil, nil), ShouldBeTrue) 2873 var a, b = make(map[uint64]float32), make(map[uint64]float32) 2874 So(EqualUint64Float32Map(a, nil), ShouldBeFalse) 2875 So(EqualUint64Float32Map(nil, a), ShouldBeFalse) 2876 So(EqualUint64Float32Map(a, b), ShouldBeTrue) 2877 2878 var key uint64 2879 var value float32 2880 for i := 0; i < 100; i++ { 2881 key = uint64(i) 2882 value = float32(i) 2883 a[key] = value 2884 b[key] = value 2885 } 2886 So(EqualUint64Float32Map(a, b), ShouldBeTrue) 2887 delete(a, key) 2888 So(EqualUint64Float32Map(a, b), ShouldBeFalse) 2889 }) 2890 2891 Convey("EqualUint64Float64Map", t, func() { 2892 So(EqualUint64Float64Map(nil, nil), ShouldBeTrue) 2893 var a, b = make(map[uint64]float64), make(map[uint64]float64) 2894 So(EqualUint64Float64Map(a, nil), ShouldBeFalse) 2895 So(EqualUint64Float64Map(nil, a), ShouldBeFalse) 2896 So(EqualUint64Float64Map(a, b), ShouldBeTrue) 2897 2898 var key uint64 2899 var value float64 2900 for i := 0; i < 100; i++ { 2901 key = uint64(i) 2902 value = float64(i) 2903 a[key] = value 2904 b[key] = value 2905 } 2906 So(EqualUint64Float64Map(a, b), ShouldBeTrue) 2907 delete(a, key) 2908 So(EqualUint64Float64Map(a, b), ShouldBeFalse) 2909 }) 2910 2911 Convey("EqualUint64IntMap", t, func() { 2912 So(EqualUint64IntMap(nil, nil), ShouldBeTrue) 2913 var a, b = make(map[uint64]int), make(map[uint64]int) 2914 So(EqualUint64IntMap(a, nil), ShouldBeFalse) 2915 So(EqualUint64IntMap(nil, a), ShouldBeFalse) 2916 So(EqualUint64IntMap(a, b), ShouldBeTrue) 2917 2918 var key uint64 2919 var value int 2920 for i := 0; i < 100; i++ { 2921 key = uint64(i) 2922 value = i 2923 a[key] = value 2924 b[key] = value 2925 } 2926 So(EqualUint64IntMap(a, b), ShouldBeTrue) 2927 delete(a, key) 2928 So(EqualUint64IntMap(a, b), ShouldBeFalse) 2929 }) 2930 2931 Convey("EqualUint64Int16Map", t, func() { 2932 So(EqualUint64Int16Map(nil, nil), ShouldBeTrue) 2933 var a, b = make(map[uint64]int16), make(map[uint64]int16) 2934 So(EqualUint64Int16Map(a, nil), ShouldBeFalse) 2935 So(EqualUint64Int16Map(nil, a), ShouldBeFalse) 2936 So(EqualUint64Int16Map(a, b), ShouldBeTrue) 2937 2938 var key uint64 2939 var value int16 2940 for i := 0; i < 100; i++ { 2941 key = uint64(i) 2942 value = int16(i) 2943 a[key] = value 2944 b[key] = value 2945 } 2946 So(EqualUint64Int16Map(a, b), ShouldBeTrue) 2947 delete(a, key) 2948 So(EqualUint64Int16Map(a, b), ShouldBeFalse) 2949 }) 2950 2951 Convey("EqualUint64Int32Map", t, func() { 2952 So(EqualUint64Int32Map(nil, nil), ShouldBeTrue) 2953 var a, b = make(map[uint64]int32), make(map[uint64]int32) 2954 So(EqualUint64Int32Map(a, nil), ShouldBeFalse) 2955 So(EqualUint64Int32Map(nil, a), ShouldBeFalse) 2956 So(EqualUint64Int32Map(a, b), ShouldBeTrue) 2957 2958 var key uint64 2959 var value int32 2960 for i := 0; i < 100; i++ { 2961 key = uint64(i) 2962 value = int32(i) 2963 a[key] = value 2964 b[key] = value 2965 } 2966 So(EqualUint64Int32Map(a, b), ShouldBeTrue) 2967 delete(a, key) 2968 So(EqualUint64Int32Map(a, b), ShouldBeFalse) 2969 }) 2970 2971 Convey("EqualUint64Int64Map", t, func() { 2972 So(EqualUint64Int64Map(nil, nil), ShouldBeTrue) 2973 var a, b = make(map[uint64]int64), make(map[uint64]int64) 2974 So(EqualUint64Int64Map(a, nil), ShouldBeFalse) 2975 So(EqualUint64Int64Map(nil, a), ShouldBeFalse) 2976 So(EqualUint64Int64Map(a, b), ShouldBeTrue) 2977 2978 var key uint64 2979 var value int64 2980 for i := 0; i < 100; i++ { 2981 key = uint64(i) 2982 value = int64(i) 2983 a[key] = value 2984 b[key] = value 2985 } 2986 So(EqualUint64Int64Map(a, b), ShouldBeTrue) 2987 delete(a, key) 2988 So(EqualUint64Int64Map(a, b), ShouldBeFalse) 2989 }) 2990 2991 Convey("EqualUint64Int8Map", t, func() { 2992 So(EqualUint64Int8Map(nil, nil), ShouldBeTrue) 2993 var a, b = make(map[uint64]int8), make(map[uint64]int8) 2994 So(EqualUint64Int8Map(a, nil), ShouldBeFalse) 2995 So(EqualUint64Int8Map(nil, a), ShouldBeFalse) 2996 So(EqualUint64Int8Map(a, b), ShouldBeTrue) 2997 2998 var key uint64 2999 var value int8 3000 for i := 0; i < 100; i++ { 3001 key = uint64(i) 3002 value = int8(i) 3003 a[key] = value 3004 b[key] = value 3005 } 3006 So(EqualUint64Int8Map(a, b), ShouldBeTrue) 3007 delete(a, key) 3008 So(EqualUint64Int8Map(a, b), ShouldBeFalse) 3009 }) 3010 3011 Convey("EqualUint64StringMap", t, func() { 3012 So(EqualUint64StringMap(nil, nil), ShouldBeTrue) 3013 var a, b = make(map[uint64]string), make(map[uint64]string) 3014 So(EqualUint64StringMap(a, nil), ShouldBeFalse) 3015 So(EqualUint64StringMap(nil, a), ShouldBeFalse) 3016 So(EqualUint64StringMap(a, b), ShouldBeTrue) 3017 3018 var key uint64 3019 var value string 3020 for i := 0; i < 100; i++ { 3021 key = uint64(i) 3022 value = strconv.FormatInt(int64(i), 10) 3023 a[key] = value 3024 b[key] = value 3025 } 3026 So(EqualUint64StringMap(a, b), ShouldBeTrue) 3027 delete(a, key) 3028 So(EqualUint64StringMap(a, b), ShouldBeFalse) 3029 }) 3030 3031 Convey("EqualUint64UintMap", t, func() { 3032 So(EqualUint64UintMap(nil, nil), ShouldBeTrue) 3033 var a, b = make(map[uint64]uint), make(map[uint64]uint) 3034 So(EqualUint64UintMap(a, nil), ShouldBeFalse) 3035 So(EqualUint64UintMap(nil, a), ShouldBeFalse) 3036 So(EqualUint64UintMap(a, b), ShouldBeTrue) 3037 3038 var key uint64 3039 var value uint 3040 for i := 0; i < 100; i++ { 3041 key = uint64(i) 3042 value = uint(i) 3043 a[key] = value 3044 b[key] = value 3045 } 3046 So(EqualUint64UintMap(a, b), ShouldBeTrue) 3047 delete(a, key) 3048 So(EqualUint64UintMap(a, b), ShouldBeFalse) 3049 }) 3050 3051 Convey("EqualUint64Uint16Map", t, func() { 3052 So(EqualUint64Uint16Map(nil, nil), ShouldBeTrue) 3053 var a, b = make(map[uint64]uint16), make(map[uint64]uint16) 3054 So(EqualUint64Uint16Map(a, nil), ShouldBeFalse) 3055 So(EqualUint64Uint16Map(nil, a), ShouldBeFalse) 3056 So(EqualUint64Uint16Map(a, b), ShouldBeTrue) 3057 3058 var key uint64 3059 var value uint16 3060 for i := 0; i < 100; i++ { 3061 key = uint64(i) 3062 value = uint16(i) 3063 a[key] = value 3064 b[key] = value 3065 } 3066 So(EqualUint64Uint16Map(a, b), ShouldBeTrue) 3067 delete(a, key) 3068 So(EqualUint64Uint16Map(a, b), ShouldBeFalse) 3069 }) 3070 3071 Convey("EqualUint64Uint32Map", t, func() { 3072 So(EqualUint64Uint32Map(nil, nil), ShouldBeTrue) 3073 var a, b = make(map[uint64]uint32), make(map[uint64]uint32) 3074 So(EqualUint64Uint32Map(a, nil), ShouldBeFalse) 3075 So(EqualUint64Uint32Map(nil, a), ShouldBeFalse) 3076 So(EqualUint64Uint32Map(a, b), ShouldBeTrue) 3077 3078 var key uint64 3079 var value uint32 3080 for i := 0; i < 100; i++ { 3081 key = uint64(i) 3082 value = uint32(i) 3083 a[key] = value 3084 b[key] = value 3085 } 3086 So(EqualUint64Uint32Map(a, b), ShouldBeTrue) 3087 delete(a, key) 3088 So(EqualUint64Uint32Map(a, b), ShouldBeFalse) 3089 }) 3090 3091 Convey("EqualUint64Uint64Map", t, func() { 3092 So(EqualUint64Uint64Map(nil, nil), ShouldBeTrue) 3093 var a, b = make(map[uint64]uint64), make(map[uint64]uint64) 3094 So(EqualUint64Uint64Map(a, nil), ShouldBeFalse) 3095 So(EqualUint64Uint64Map(nil, a), ShouldBeFalse) 3096 So(EqualUint64Uint64Map(a, b), ShouldBeTrue) 3097 3098 var key uint64 3099 var value uint64 3100 for i := 0; i < 100; i++ { 3101 key = uint64(i) 3102 value = uint64(i) 3103 a[key] = value 3104 b[key] = value 3105 } 3106 So(EqualUint64Uint64Map(a, b), ShouldBeTrue) 3107 delete(a, key) 3108 So(EqualUint64Uint64Map(a, b), ShouldBeFalse) 3109 }) 3110 3111 Convey("EqualUint64Uint8Map", t, func() { 3112 So(EqualUint64Uint8Map(nil, nil), ShouldBeTrue) 3113 var a, b = make(map[uint64]uint8), make(map[uint64]uint8) 3114 So(EqualUint64Uint8Map(a, nil), ShouldBeFalse) 3115 So(EqualUint64Uint8Map(nil, a), ShouldBeFalse) 3116 So(EqualUint64Uint8Map(a, b), ShouldBeTrue) 3117 3118 var key uint64 3119 var value uint8 3120 for i := 0; i < 100; i++ { 3121 key = uint64(i) 3122 value = uint8(i) 3123 a[key] = value 3124 b[key] = value 3125 } 3126 So(EqualUint64Uint8Map(a, b), ShouldBeTrue) 3127 delete(a, key) 3128 So(EqualUint64Uint8Map(a, b), ShouldBeFalse) 3129 }) 3130 3131 Convey("EqualUint8Float32Map", t, func() { 3132 So(EqualUint8Float32Map(nil, nil), ShouldBeTrue) 3133 var a, b = make(map[uint8]float32), make(map[uint8]float32) 3134 So(EqualUint8Float32Map(a, nil), ShouldBeFalse) 3135 So(EqualUint8Float32Map(nil, a), ShouldBeFalse) 3136 So(EqualUint8Float32Map(a, b), ShouldBeTrue) 3137 3138 var key uint8 3139 var value float32 3140 for i := 0; i < 100; i++ { 3141 key = uint8(i) 3142 value = float32(i) 3143 a[key] = value 3144 b[key] = value 3145 } 3146 So(EqualUint8Float32Map(a, b), ShouldBeTrue) 3147 delete(a, key) 3148 So(EqualUint8Float32Map(a, b), ShouldBeFalse) 3149 }) 3150 3151 Convey("EqualUint8Float64Map", t, func() { 3152 So(EqualUint8Float64Map(nil, nil), ShouldBeTrue) 3153 var a, b = make(map[uint8]float64), make(map[uint8]float64) 3154 So(EqualUint8Float64Map(a, nil), ShouldBeFalse) 3155 So(EqualUint8Float64Map(nil, a), ShouldBeFalse) 3156 So(EqualUint8Float64Map(a, b), ShouldBeTrue) 3157 3158 var key uint8 3159 var value float64 3160 for i := 0; i < 100; i++ { 3161 key = uint8(i) 3162 value = float64(i) 3163 a[key] = value 3164 b[key] = value 3165 } 3166 So(EqualUint8Float64Map(a, b), ShouldBeTrue) 3167 delete(a, key) 3168 So(EqualUint8Float64Map(a, b), ShouldBeFalse) 3169 }) 3170 3171 Convey("EqualUint8IntMap", t, func() { 3172 So(EqualUint8IntMap(nil, nil), ShouldBeTrue) 3173 var a, b = make(map[uint8]int), make(map[uint8]int) 3174 So(EqualUint8IntMap(a, nil), ShouldBeFalse) 3175 So(EqualUint8IntMap(nil, a), ShouldBeFalse) 3176 So(EqualUint8IntMap(a, b), ShouldBeTrue) 3177 3178 var key uint8 3179 var value int 3180 for i := 0; i < 100; i++ { 3181 key = uint8(i) 3182 value = i 3183 a[key] = value 3184 b[key] = value 3185 } 3186 So(EqualUint8IntMap(a, b), ShouldBeTrue) 3187 delete(a, key) 3188 So(EqualUint8IntMap(a, b), ShouldBeFalse) 3189 }) 3190 3191 Convey("EqualUint8Int16Map", t, func() { 3192 So(EqualUint8Int16Map(nil, nil), ShouldBeTrue) 3193 var a, b = make(map[uint8]int16), make(map[uint8]int16) 3194 So(EqualUint8Int16Map(a, nil), ShouldBeFalse) 3195 So(EqualUint8Int16Map(nil, a), ShouldBeFalse) 3196 So(EqualUint8Int16Map(a, b), ShouldBeTrue) 3197 3198 var key uint8 3199 var value int16 3200 for i := 0; i < 100; i++ { 3201 key = uint8(i) 3202 value = int16(i) 3203 a[key] = value 3204 b[key] = value 3205 } 3206 So(EqualUint8Int16Map(a, b), ShouldBeTrue) 3207 delete(a, key) 3208 So(EqualUint8Int16Map(a, b), ShouldBeFalse) 3209 }) 3210 3211 Convey("EqualUint8Int32Map", t, func() { 3212 So(EqualUint8Int32Map(nil, nil), ShouldBeTrue) 3213 var a, b = make(map[uint8]int32), make(map[uint8]int32) 3214 So(EqualUint8Int32Map(a, nil), ShouldBeFalse) 3215 So(EqualUint8Int32Map(nil, a), ShouldBeFalse) 3216 So(EqualUint8Int32Map(a, b), ShouldBeTrue) 3217 3218 var key uint8 3219 var value int32 3220 for i := 0; i < 100; i++ { 3221 key = uint8(i) 3222 value = int32(i) 3223 a[key] = value 3224 b[key] = value 3225 } 3226 So(EqualUint8Int32Map(a, b), ShouldBeTrue) 3227 delete(a, key) 3228 So(EqualUint8Int32Map(a, b), ShouldBeFalse) 3229 }) 3230 3231 Convey("EqualUint8Int64Map", t, func() { 3232 So(EqualUint8Int64Map(nil, nil), ShouldBeTrue) 3233 var a, b = make(map[uint8]int64), make(map[uint8]int64) 3234 So(EqualUint8Int64Map(a, nil), ShouldBeFalse) 3235 So(EqualUint8Int64Map(nil, a), ShouldBeFalse) 3236 So(EqualUint8Int64Map(a, b), ShouldBeTrue) 3237 3238 var key uint8 3239 var value int64 3240 for i := 0; i < 100; i++ { 3241 key = uint8(i) 3242 value = int64(i) 3243 a[key] = value 3244 b[key] = value 3245 } 3246 So(EqualUint8Int64Map(a, b), ShouldBeTrue) 3247 delete(a, key) 3248 So(EqualUint8Int64Map(a, b), ShouldBeFalse) 3249 }) 3250 3251 Convey("EqualUint8Int8Map", t, func() { 3252 So(EqualUint8Int8Map(nil, nil), ShouldBeTrue) 3253 var a, b = make(map[uint8]int8), make(map[uint8]int8) 3254 So(EqualUint8Int8Map(a, nil), ShouldBeFalse) 3255 So(EqualUint8Int8Map(nil, a), ShouldBeFalse) 3256 So(EqualUint8Int8Map(a, b), ShouldBeTrue) 3257 3258 var key uint8 3259 var value int8 3260 for i := 0; i < 100; i++ { 3261 key = uint8(i) 3262 value = int8(i) 3263 a[key] = value 3264 b[key] = value 3265 } 3266 So(EqualUint8Int8Map(a, b), ShouldBeTrue) 3267 delete(a, key) 3268 So(EqualUint8Int8Map(a, b), ShouldBeFalse) 3269 }) 3270 3271 Convey("EqualUint8StringMap", t, func() { 3272 So(EqualUint8StringMap(nil, nil), ShouldBeTrue) 3273 var a, b = make(map[uint8]string), make(map[uint8]string) 3274 So(EqualUint8StringMap(a, nil), ShouldBeFalse) 3275 So(EqualUint8StringMap(nil, a), ShouldBeFalse) 3276 So(EqualUint8StringMap(a, b), ShouldBeTrue) 3277 3278 var key uint8 3279 var value string 3280 for i := 0; i < 100; i++ { 3281 key = uint8(i) 3282 value = strconv.FormatInt(int64(i), 10) 3283 a[key] = value 3284 b[key] = value 3285 } 3286 So(EqualUint8StringMap(a, b), ShouldBeTrue) 3287 delete(a, key) 3288 So(EqualUint8StringMap(a, b), ShouldBeFalse) 3289 }) 3290 3291 Convey("EqualUint8UintMap", t, func() { 3292 So(EqualUint8UintMap(nil, nil), ShouldBeTrue) 3293 var a, b = make(map[uint8]uint), make(map[uint8]uint) 3294 So(EqualUint8UintMap(a, nil), ShouldBeFalse) 3295 So(EqualUint8UintMap(nil, a), ShouldBeFalse) 3296 So(EqualUint8UintMap(a, b), ShouldBeTrue) 3297 3298 var key uint8 3299 var value uint 3300 for i := 0; i < 100; i++ { 3301 key = uint8(i) 3302 value = uint(i) 3303 a[key] = value 3304 b[key] = value 3305 } 3306 So(EqualUint8UintMap(a, b), ShouldBeTrue) 3307 delete(a, key) 3308 So(EqualUint8UintMap(a, b), ShouldBeFalse) 3309 }) 3310 3311 Convey("EqualUint8Uint16Map", t, func() { 3312 So(EqualUint8Uint16Map(nil, nil), ShouldBeTrue) 3313 var a, b = make(map[uint8]uint16), make(map[uint8]uint16) 3314 So(EqualUint8Uint16Map(a, nil), ShouldBeFalse) 3315 So(EqualUint8Uint16Map(nil, a), ShouldBeFalse) 3316 So(EqualUint8Uint16Map(a, b), ShouldBeTrue) 3317 3318 var key uint8 3319 var value uint16 3320 for i := 0; i < 100; i++ { 3321 key = uint8(i) 3322 value = uint16(i) 3323 a[key] = value 3324 b[key] = value 3325 } 3326 So(EqualUint8Uint16Map(a, b), ShouldBeTrue) 3327 delete(a, key) 3328 So(EqualUint8Uint16Map(a, b), ShouldBeFalse) 3329 }) 3330 3331 Convey("EqualUint8Uint32Map", t, func() { 3332 So(EqualUint8Uint32Map(nil, nil), ShouldBeTrue) 3333 var a, b = make(map[uint8]uint32), make(map[uint8]uint32) 3334 So(EqualUint8Uint32Map(a, nil), ShouldBeFalse) 3335 So(EqualUint8Uint32Map(nil, a), ShouldBeFalse) 3336 So(EqualUint8Uint32Map(a, b), ShouldBeTrue) 3337 3338 var key uint8 3339 var value uint32 3340 for i := 0; i < 100; i++ { 3341 key = uint8(i) 3342 value = uint32(i) 3343 a[key] = value 3344 b[key] = value 3345 } 3346 So(EqualUint8Uint32Map(a, b), ShouldBeTrue) 3347 delete(a, key) 3348 So(EqualUint8Uint32Map(a, b), ShouldBeFalse) 3349 }) 3350 3351 Convey("EqualUint8Uint64Map", t, func() { 3352 So(EqualUint8Uint64Map(nil, nil), ShouldBeTrue) 3353 var a, b = make(map[uint8]uint64), make(map[uint8]uint64) 3354 So(EqualUint8Uint64Map(a, nil), ShouldBeFalse) 3355 So(EqualUint8Uint64Map(nil, a), ShouldBeFalse) 3356 So(EqualUint8Uint64Map(a, b), ShouldBeTrue) 3357 3358 var key uint8 3359 var value uint64 3360 for i := 0; i < 100; i++ { 3361 key = uint8(i) 3362 value = uint64(i) 3363 a[key] = value 3364 b[key] = value 3365 } 3366 So(EqualUint8Uint64Map(a, b), ShouldBeTrue) 3367 delete(a, key) 3368 So(EqualUint8Uint64Map(a, b), ShouldBeFalse) 3369 }) 3370 3371 Convey("EqualUint8Uint8Map", t, func() { 3372 So(EqualUint8Uint8Map(nil, nil), ShouldBeTrue) 3373 var a, b = make(map[uint8]uint8), make(map[uint8]uint8) 3374 So(EqualUint8Uint8Map(a, nil), ShouldBeFalse) 3375 So(EqualUint8Uint8Map(nil, a), ShouldBeFalse) 3376 So(EqualUint8Uint8Map(a, b), ShouldBeTrue) 3377 3378 var key uint8 3379 var value uint8 3380 for i := 0; i < 100; i++ { 3381 key = uint8(i) 3382 value = uint8(i) 3383 a[key] = value 3384 b[key] = value 3385 } 3386 So(EqualUint8Uint8Map(a, b), ShouldBeTrue) 3387 delete(a, key) 3388 So(EqualUint8Uint8Map(a, b), ShouldBeFalse) 3389 }) 3390 }