Lines Matching full:u
43 //%PDDM-EXPAND TEST_FOR_POD_KEY(UInt32, uint32_t, 1U, 2U, 3U, 4U)
96 XCTAssertEqual(dict.count, 0U);
97 XCTAssertFalse([dict valueForKey:1U value:NULL]);
106 GPBUInt32UInt32Dictionary *dict = [GPBUInt32UInt32Dictionary dictionaryWithValue:100U forKey:1U];
108 XCTAssertEqual(dict.count, 1U);
110 XCTAssertTrue([dict valueForKey:1U value:NULL]);
111 XCTAssertTrue([dict valueForKey:1U value:&value]);
112 XCTAssertEqual(value, 100U);
113 XCTAssertFalse([dict valueForKey:2U value:NULL]);
115 XCTAssertEqual(aKey, 1U);
116 XCTAssertEqual(aValue, 100U);
122 const uint32_t kKeys[] = { 1U, 2U, 3U };
123 const uint32_t kValues[] = { 100U, 101U, 102U };
129 XCTAssertEqual(dict.count, 3U);
131 XCTAssertTrue([dict valueForKey:1U value:NULL]);
132 XCTAssertTrue([dict valueForKey:1U value:&value]);
133 XCTAssertEqual(value, 100U);
134 XCTAssertTrue([dict valueForKey:2U value:NULL]);
135 XCTAssertTrue([dict valueForKey:2U value:&value]);
136 XCTAssertEqual(value, 101U);
137 XCTAssertTrue([dict valueForKey:3U value:NULL]);
138 XCTAssertTrue([dict valueForKey:3U value:&value]);
139 XCTAssertEqual(value, 102U);
140 XCTAssertFalse([dict valueForKey:4U value:NULL]);
146 XCTAssertLessThan(idx, 3U);
170 XCTAssertNotEqual(idx, 2U);
177 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
178 const uint32_t kKeys2[] = { 2U, 1U, 4U };
179 const uint32_t kValues1[] = { 100U, 101U, 102U };
180 const uint32_t kValues2[] = { 100U, 103U, 102U };
181 const uint32_t kValues3[] = { 100U, 101U, 102U, 103U };
231 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
232 const uint32_t kValues[] = { 100U, 101U, 102U, 103U };
252 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
253 const uint32_t kValues[] = { 100U, 101U, 102U, 103U };
274 XCTAssertEqual(dict.count, 0U);
275 [dict setValue:100U forKey:1U];
276 XCTAssertEqual(dict.count, 1U);
278 const uint32_t kKeys[] = { 2U, 3U, 4U };
279 const uint32_t kValues[] = { 101U, 102U, 103U };
286 XCTAssertEqual(dict.count, 4U);
289 XCTAssertTrue([dict valueForKey:1U value:NULL]);
290 XCTAssertTrue([dict valueForKey:1U value:&value]);
291 XCTAssertEqual(value, 100U);
292 XCTAssertTrue([dict valueForKey:2U value:NULL]);
293 XCTAssertTrue([dict valueForKey:2U value:&value]);
294 XCTAssertEqual(value, 101U);
295 XCTAssertTrue([dict valueForKey:3U value:NULL]);
296 XCTAssertTrue([dict valueForKey:3U value:&value]);
297 XCTAssertEqual(value, 102U);
298 XCTAssertTrue([dict valueForKey:4U value:NULL]);
299 XCTAssertTrue([dict valueForKey:4U value:&value]);
300 XCTAssertEqual(value, 103U);
305 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
306 const uint32_t kValues[] = { 100U, 101U, 102U, 103U };
312 XCTAssertEqual(dict.count, 4U);
314 [dict removeValueForKey:2U];
315 XCTAssertEqual(dict.count, 3U);
317 XCTAssertTrue([dict valueForKey:1U value:NULL]);
318 XCTAssertTrue([dict valueForKey:1U value:&value]);
319 XCTAssertEqual(value, 100U);
320 XCTAssertFalse([dict valueForKey:2U value:NULL]);
321 XCTAssertTrue([dict valueForKey:3U value:NULL]);
322 XCTAssertTrue([dict valueForKey:3U value:&value]);
323 XCTAssertEqual(value, 102U);
324 XCTAssertTrue([dict valueForKey:4U value:NULL]);
325 XCTAssertTrue([dict valueForKey:4U value:&value]);
326 XCTAssertEqual(value, 103U);
329 [dict removeValueForKey:2U];
330 XCTAssertEqual(dict.count, 3U);
331 XCTAssertTrue([dict valueForKey:1U value:NULL]);
332 XCTAssertTrue([dict valueForKey:1U value:&value]);
333 XCTAssertEqual(value, 100U);
334 XCTAssertFalse([dict valueForKey:2U value:NULL]);
335 XCTAssertTrue([dict valueForKey:3U value:NULL]);
336 XCTAssertTrue([dict valueForKey:3U value:&value]);
337 XCTAssertEqual(value, 102U);
338 XCTAssertTrue([dict valueForKey:4U value:NULL]);
339 XCTAssertTrue([dict valueForKey:4U value:&value]);
340 XCTAssertEqual(value, 103U);
342 [dict removeValueForKey:4U];
343 XCTAssertEqual(dict.count, 2U);
344 XCTAssertTrue([dict valueForKey:1U value:NULL]);
345 XCTAssertTrue([dict valueForKey:1U value:&value]);
346 XCTAssertEqual(value, 100U);
347 XCTAssertFalse([dict valueForKey:2U value:NULL]);
348 XCTAssertTrue([dict valueForKey:3U value:NULL]);
349 XCTAssertTrue([dict valueForKey:3U value:&value]);
350 XCTAssertEqual(value, 102U);
351 XCTAssertFalse([dict valueForKey:4U value:NULL]);
354 XCTAssertEqual(dict.count, 0U);
355 XCTAssertFalse([dict valueForKey:1U value:NULL]);
356 XCTAssertFalse([dict valueForKey:2U value:NULL]);
357 XCTAssertFalse([dict valueForKey:3U value:NULL]);
358 XCTAssertFalse([dict valueForKey:4U value:NULL]);
363 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
364 const uint32_t kValues[] = { 100U, 101U, 102U, 103U };
370 XCTAssertEqual(dict.count, 4U);
372 XCTAssertTrue([dict valueForKey:1U value:NULL]);
373 XCTAssertTrue([dict valueForKey:1U value:&value]);
374 XCTAssertEqual(value, 100U);
375 XCTAssertTrue([dict valueForKey:2U value:NULL]);
376 XCTAssertTrue([dict valueForKey:2U value:&value]);
377 XCTAssertEqual(value, 101U);
378 XCTAssertTrue([dict valueForKey:3U value:NULL]);
379 XCTAssertTrue([dict valueForKey:3U value:&value]);
380 XCTAssertEqual(value, 102U);
381 XCTAssertTrue([dict valueForKey:4U value:NULL]);
382 XCTAssertTrue([dict valueForKey:4U value:&value]);
383 XCTAssertEqual(value, 103U);
385 [dict setValue:103U forKey:1U];
386 XCTAssertEqual(dict.count, 4U);
387 XCTAssertTrue([dict valueForKey:1U value:NULL]);
388 XCTAssertTrue([dict valueForKey:1U value:&value]);
389 XCTAssertEqual(value, 103U);
390 XCTAssertTrue([dict valueForKey:2U value:NULL]);
391 XCTAssertTrue([dict valueForKey:2U value:&value]);
392 XCTAssertEqual(value, 101U);
393 XCTAssertTrue([dict valueForKey:3U value:NULL]);
394 XCTAssertTrue([dict valueForKey:3U value:&value]);
395 XCTAssertEqual(value, 102U);
396 XCTAssertTrue([dict valueForKey:4U value:NULL]);
397 XCTAssertTrue([dict valueForKey:4U value:&value]);
398 XCTAssertEqual(value, 103U);
400 [dict setValue:101U forKey:4U];
401 XCTAssertEqual(dict.count, 4U);
402 XCTAssertTrue([dict valueForKey:1U value:NULL]);
403 XCTAssertTrue([dict valueForKey:1U value:&value]);
404 XCTAssertEqual(value, 103U);
405 XCTAssertTrue([dict valueForKey:2U value:NULL]);
406 XCTAssertTrue([dict valueForKey:2U value:&value]);
407 XCTAssertEqual(value, 101U);
408 XCTAssertTrue([dict valueForKey:3U value:NULL]);
409 XCTAssertTrue([dict valueForKey:3U value:&value]);
410 XCTAssertEqual(value, 102U);
411 XCTAssertTrue([dict valueForKey:4U value:NULL]);
412 XCTAssertTrue([dict valueForKey:4U value:&value]);
413 XCTAssertEqual(value, 101U);
415 const uint32_t kKeys2[] = { 2U, 3U };
416 const uint32_t kValues2[] = { 102U, 100U };
423 XCTAssertEqual(dict.count, 4U);
424 XCTAssertTrue([dict valueForKey:1U value:NULL]);
425 XCTAssertTrue([dict valueForKey:1U value:&value]);
426 XCTAssertEqual(value, 103U);
427 XCTAssertTrue([dict valueForKey:2U value:NULL]);
428 XCTAssertTrue([dict valueForKey:2U value:&value]);
429 XCTAssertEqual(value, 102U);
430 XCTAssertTrue([dict valueForKey:3U value:NULL]);
431 XCTAssertTrue([dict valueForKey:3U value:&value]);
432 XCTAssertEqual(value, 100U);
433 XCTAssertTrue([dict valueForKey:4U value:NULL]);
434 XCTAssertTrue([dict valueForKey:4U value:&value]);
435 XCTAssertEqual(value, 101U);
453 XCTAssertEqual(dict.count, 0U);
454 XCTAssertFalse([dict valueForKey:1U value:NULL]);
463 GPBUInt32Int32Dictionary *dict = [GPBUInt32Int32Dictionary dictionaryWithValue:200 forKey:1U];
465 XCTAssertEqual(dict.count, 1U);
467 XCTAssertTrue([dict valueForKey:1U value:NULL]);
468 XCTAssertTrue([dict valueForKey:1U value:&value]);
470 XCTAssertFalse([dict valueForKey:2U value:NULL]);
472 XCTAssertEqual(aKey, 1U);
479 const uint32_t kKeys[] = { 1U, 2U, 3U };
486 XCTAssertEqual(dict.count, 3U);
488 XCTAssertTrue([dict valueForKey:1U value:NULL]);
489 XCTAssertTrue([dict valueForKey:1U value:&value]);
491 XCTAssertTrue([dict valueForKey:2U value:NULL]);
492 XCTAssertTrue([dict valueForKey:2U value:&value]);
494 XCTAssertTrue([dict valueForKey:3U value:NULL]);
495 XCTAssertTrue([dict valueForKey:3U value:&value]);
497 XCTAssertFalse([dict valueForKey:4U value:NULL]);
503 XCTAssertLessThan(idx, 3U);
527 XCTAssertNotEqual(idx, 2U);
534 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
535 const uint32_t kKeys2[] = { 2U, 1U, 4U };
588 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
609 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
631 XCTAssertEqual(dict.count, 0U);
632 [dict setValue:200 forKey:1U];
633 XCTAssertEqual(dict.count, 1U);
635 const uint32_t kKeys[] = { 2U, 3U, 4U };
643 XCTAssertEqual(dict.count, 4U);
646 XCTAssertTrue([dict valueForKey:1U value:NULL]);
647 XCTAssertTrue([dict valueForKey:1U value:&value]);
649 XCTAssertTrue([dict valueForKey:2U value:NULL]);
650 XCTAssertTrue([dict valueForKey:2U value:&value]);
652 XCTAssertTrue([dict valueForKey:3U value:NULL]);
653 XCTAssertTrue([dict valueForKey:3U value:&value]);
655 XCTAssertTrue([dict valueForKey:4U value:NULL]);
656 XCTAssertTrue([dict valueForKey:4U value:&value]);
662 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
669 XCTAssertEqual(dict.count, 4U);
671 [dict removeValueForKey:2U];
672 XCTAssertEqual(dict.count, 3U);
674 XCTAssertTrue([dict valueForKey:1U value:NULL]);
675 XCTAssertTrue([dict valueForKey:1U value:&value]);
677 XCTAssertFalse([dict valueForKey:2U value:NULL]);
678 XCTAssertTrue([dict valueForKey:3U value:NULL]);
679 XCTAssertTrue([dict valueForKey:3U value:&value]);
681 XCTAssertTrue([dict valueForKey:4U value:NULL]);
682 XCTAssertTrue([dict valueForKey:4U value:&value]);
686 [dict removeValueForKey:2U];
687 XCTAssertEqual(dict.count, 3U);
688 XCTAssertTrue([dict valueForKey:1U value:NULL]);
689 XCTAssertTrue([dict valueForKey:1U value:&value]);
691 XCTAssertFalse([dict valueForKey:2U value:NULL]);
692 XCTAssertTrue([dict valueForKey:3U value:NULL]);
693 XCTAssertTrue([dict valueForKey:3U value:&value]);
695 XCTAssertTrue([dict valueForKey:4U value:NULL]);
696 XCTAssertTrue([dict valueForKey:4U value:&value]);
699 [dict removeValueForKey:4U];
700 XCTAssertEqual(dict.count, 2U);
701 XCTAssertTrue([dict valueForKey:1U value:NULL]);
702 XCTAssertTrue([dict valueForKey:1U value:&value]);
704 XCTAssertFalse([dict valueForKey:2U value:NULL]);
705 XCTAssertTrue([dict valueForKey:3U value:NULL]);
706 XCTAssertTrue([dict valueForKey:3U value:&value]);
708 XCTAssertFalse([dict valueForKey:4U value:NULL]);
711 XCTAssertEqual(dict.count, 0U);
712 XCTAssertFalse([dict valueForKey:1U value:NULL]);
713 XCTAssertFalse([dict valueForKey:2U value:NULL]);
714 XCTAssertFalse([dict valueForKey:3U value:NULL]);
715 XCTAssertFalse([dict valueForKey:4U value:NULL]);
720 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
727 XCTAssertEqual(dict.count, 4U);
729 XCTAssertTrue([dict valueForKey:1U value:NULL]);
730 XCTAssertTrue([dict valueForKey:1U value:&value]);
732 XCTAssertTrue([dict valueForKey:2U value:NULL]);
733 XCTAssertTrue([dict valueForKey:2U value:&value]);
735 XCTAssertTrue([dict valueForKey:3U value:NULL]);
736 XCTAssertTrue([dict valueForKey:3U value:&value]);
738 XCTAssertTrue([dict valueForKey:4U value:NULL]);
739 XCTAssertTrue([dict valueForKey:4U value:&value]);
742 [dict setValue:203 forKey:1U];
743 XCTAssertEqual(dict.count, 4U);
744 XCTAssertTrue([dict valueForKey:1U value:NULL]);
745 XCTAssertTrue([dict valueForKey:1U value:&value]);
747 XCTAssertTrue([dict valueForKey:2U value:NULL]);
748 XCTAssertTrue([dict valueForKey:2U value:&value]);
750 XCTAssertTrue([dict valueForKey:3U value:NULL]);
751 XCTAssertTrue([dict valueForKey:3U value:&value]);
753 XCTAssertTrue([dict valueForKey:4U value:NULL]);
754 XCTAssertTrue([dict valueForKey:4U value:&value]);
757 [dict setValue:201 forKey:4U];
758 XCTAssertEqual(dict.count, 4U);
759 XCTAssertTrue([dict valueForKey:1U value:NULL]);
760 XCTAssertTrue([dict valueForKey:1U value:&value]);
762 XCTAssertTrue([dict valueForKey:2U value:NULL]);
763 XCTAssertTrue([dict valueForKey:2U value:&value]);
765 XCTAssertTrue([dict valueForKey:3U value:NULL]);
766 XCTAssertTrue([dict valueForKey:3U value:&value]);
768 XCTAssertTrue([dict valueForKey:4U value:NULL]);
769 XCTAssertTrue([dict valueForKey:4U value:&value]);
772 const uint32_t kKeys2[] = { 2U, 3U };
780 XCTAssertEqual(dict.count, 4U);
781 XCTAssertTrue([dict valueForKey:1U value:NULL]);
782 XCTAssertTrue([dict valueForKey:1U value:&value]);
784 XCTAssertTrue([dict valueForKey:2U value:NULL]);
785 XCTAssertTrue([dict valueForKey:2U value:&value]);
787 XCTAssertTrue([dict valueForKey:3U value:NULL]);
788 XCTAssertTrue([dict valueForKey:3U value:&value]);
790 XCTAssertTrue([dict valueForKey:4U value:NULL]);
791 XCTAssertTrue([dict valueForKey:4U value:&value]);
810 XCTAssertEqual(dict.count, 0U);
811 XCTAssertFalse([dict valueForKey:1U value:NULL]);
820 GPBUInt32UInt64Dictionary *dict = [GPBUInt32UInt64Dictionary dictionaryWithValue:300U forKey:1U];
822 XCTAssertEqual(dict.count, 1U);
824 XCTAssertTrue([dict valueForKey:1U value:NULL]);
825 XCTAssertTrue([dict valueForKey:1U value:&value]);
826 XCTAssertEqual(value, 300U);
827 XCTAssertFalse([dict valueForKey:2U value:NULL]);
829 XCTAssertEqual(aKey, 1U);
830 XCTAssertEqual(aValue, 300U);
836 const uint32_t kKeys[] = { 1U, 2U, 3U };
837 const uint64_t kValues[] = { 300U, 301U, 302U };
843 XCTAssertEqual(dict.count, 3U);
845 XCTAssertTrue([dict valueForKey:1U value:NULL]);
846 XCTAssertTrue([dict valueForKey:1U value:&value]);
847 XCTAssertEqual(value, 300U);
848 XCTAssertTrue([dict valueForKey:2U value:NULL]);
849 XCTAssertTrue([dict valueForKey:2U value:&value]);
850 XCTAssertEqual(value, 301U);
851 XCTAssertTrue([dict valueForKey:3U value:NULL]);
852 XCTAssertTrue([dict valueForKey:3U value:&value]);
853 XCTAssertEqual(value, 302U);
854 XCTAssertFalse([dict valueForKey:4U value:NULL]);
860 XCTAssertLessThan(idx, 3U);
884 XCTAssertNotEqual(idx, 2U);
891 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
892 const uint32_t kKeys2[] = { 2U, 1U, 4U };
893 const uint64_t kValues1[] = { 300U, 301U, 302U };
894 const uint64_t kValues2[] = { 300U, 303U, 302U };
895 const uint64_t kValues3[] = { 300U, 301U, 302U, 303U };
945 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
946 const uint64_t kValues[] = { 300U, 301U, 302U, 303U };
966 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
967 const uint64_t kValues[] = { 300U, 301U, 302U, 303U };
988 XCTAssertEqual(dict.count, 0U);
989 [dict setValue:300U forKey:1U];
990 XCTAssertEqual(dict.count, 1U);
992 const uint32_t kKeys[] = { 2U, 3U, 4U };
993 const uint64_t kValues[] = { 301U, 302U, 303U };
1000 XCTAssertEqual(dict.count, 4U);
1003 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1004 XCTAssertTrue([dict valueForKey:1U value:&value]);
1005 XCTAssertEqual(value, 300U);
1006 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1007 XCTAssertTrue([dict valueForKey:2U value:&value]);
1008 XCTAssertEqual(value, 301U);
1009 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1010 XCTAssertTrue([dict valueForKey:3U value:&value]);
1011 XCTAssertEqual(value, 302U);
1012 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1013 XCTAssertTrue([dict valueForKey:4U value:&value]);
1014 XCTAssertEqual(value, 303U);
1019 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1020 const uint64_t kValues[] = { 300U, 301U, 302U, 303U };
1026 XCTAssertEqual(dict.count, 4U);
1028 [dict removeValueForKey:2U];
1029 XCTAssertEqual(dict.count, 3U);
1031 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1032 XCTAssertTrue([dict valueForKey:1U value:&value]);
1033 XCTAssertEqual(value, 300U);
1034 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1035 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1036 XCTAssertTrue([dict valueForKey:3U value:&value]);
1037 XCTAssertEqual(value, 302U);
1038 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1039 XCTAssertTrue([dict valueForKey:4U value:&value]);
1040 XCTAssertEqual(value, 303U);
1043 [dict removeValueForKey:2U];
1044 XCTAssertEqual(dict.count, 3U);
1045 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1046 XCTAssertTrue([dict valueForKey:1U value:&value]);
1047 XCTAssertEqual(value, 300U);
1048 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1049 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1050 XCTAssertTrue([dict valueForKey:3U value:&value]);
1051 XCTAssertEqual(value, 302U);
1052 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1053 XCTAssertTrue([dict valueForKey:4U value:&value]);
1054 XCTAssertEqual(value, 303U);
1056 [dict removeValueForKey:4U];
1057 XCTAssertEqual(dict.count, 2U);
1058 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1059 XCTAssertTrue([dict valueForKey:1U value:&value]);
1060 XCTAssertEqual(value, 300U);
1061 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1062 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1063 XCTAssertTrue([dict valueForKey:3U value:&value]);
1064 XCTAssertEqual(value, 302U);
1065 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1068 XCTAssertEqual(dict.count, 0U);
1069 XCTAssertFalse([dict valueForKey:1U value:NULL]);
1070 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1071 XCTAssertFalse([dict valueForKey:3U value:NULL]);
1072 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1077 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1078 const uint64_t kValues[] = { 300U, 301U, 302U, 303U };
1084 XCTAssertEqual(dict.count, 4U);
1086 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1087 XCTAssertTrue([dict valueForKey:1U value:&value]);
1088 XCTAssertEqual(value, 300U);
1089 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1090 XCTAssertTrue([dict valueForKey:2U value:&value]);
1091 XCTAssertEqual(value, 301U);
1092 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1093 XCTAssertTrue([dict valueForKey:3U value:&value]);
1094 XCTAssertEqual(value, 302U);
1095 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1096 XCTAssertTrue([dict valueForKey:4U value:&value]);
1097 XCTAssertEqual(value, 303U);
1099 [dict setValue:303U forKey:1U];
1100 XCTAssertEqual(dict.count, 4U);
1101 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1102 XCTAssertTrue([dict valueForKey:1U value:&value]);
1103 XCTAssertEqual(value, 303U);
1104 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1105 XCTAssertTrue([dict valueForKey:2U value:&value]);
1106 XCTAssertEqual(value, 301U);
1107 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1108 XCTAssertTrue([dict valueForKey:3U value:&value]);
1109 XCTAssertEqual(value, 302U);
1110 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1111 XCTAssertTrue([dict valueForKey:4U value:&value]);
1112 XCTAssertEqual(value, 303U);
1114 [dict setValue:301U forKey:4U];
1115 XCTAssertEqual(dict.count, 4U);
1116 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1117 XCTAssertTrue([dict valueForKey:1U value:&value]);
1118 XCTAssertEqual(value, 303U);
1119 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1120 XCTAssertTrue([dict valueForKey:2U value:&value]);
1121 XCTAssertEqual(value, 301U);
1122 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1123 XCTAssertTrue([dict valueForKey:3U value:&value]);
1124 XCTAssertEqual(value, 302U);
1125 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1126 XCTAssertTrue([dict valueForKey:4U value:&value]);
1127 XCTAssertEqual(value, 301U);
1129 const uint32_t kKeys2[] = { 2U, 3U };
1130 const uint64_t kValues2[] = { 302U, 300U };
1137 XCTAssertEqual(dict.count, 4U);
1138 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1139 XCTAssertTrue([dict valueForKey:1U value:&value]);
1140 XCTAssertEqual(value, 303U);
1141 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1142 XCTAssertTrue([dict valueForKey:2U value:&value]);
1143 XCTAssertEqual(value, 302U);
1144 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1145 XCTAssertTrue([dict valueForKey:3U value:&value]);
1146 XCTAssertEqual(value, 300U);
1147 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1148 XCTAssertTrue([dict valueForKey:4U value:&value]);
1149 XCTAssertEqual(value, 301U);
1167 XCTAssertEqual(dict.count, 0U);
1168 XCTAssertFalse([dict valueForKey:1U value:NULL]);
1177 GPBUInt32Int64Dictionary *dict = [GPBUInt32Int64Dictionary dictionaryWithValue:400 forKey:1U];
1179 XCTAssertEqual(dict.count, 1U);
1181 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1182 XCTAssertTrue([dict valueForKey:1U value:&value]);
1184 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1186 XCTAssertEqual(aKey, 1U);
1193 const uint32_t kKeys[] = { 1U, 2U, 3U };
1200 XCTAssertEqual(dict.count, 3U);
1202 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1203 XCTAssertTrue([dict valueForKey:1U value:&value]);
1205 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1206 XCTAssertTrue([dict valueForKey:2U value:&value]);
1208 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1209 XCTAssertTrue([dict valueForKey:3U value:&value]);
1211 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1217 XCTAssertLessThan(idx, 3U);
1241 XCTAssertNotEqual(idx, 2U);
1248 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
1249 const uint32_t kKeys2[] = { 2U, 1U, 4U };
1302 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1323 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1345 XCTAssertEqual(dict.count, 0U);
1346 [dict setValue:400 forKey:1U];
1347 XCTAssertEqual(dict.count, 1U);
1349 const uint32_t kKeys[] = { 2U, 3U, 4U };
1357 XCTAssertEqual(dict.count, 4U);
1360 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1361 XCTAssertTrue([dict valueForKey:1U value:&value]);
1363 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1364 XCTAssertTrue([dict valueForKey:2U value:&value]);
1366 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1367 XCTAssertTrue([dict valueForKey:3U value:&value]);
1369 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1370 XCTAssertTrue([dict valueForKey:4U value:&value]);
1376 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1383 XCTAssertEqual(dict.count, 4U);
1385 [dict removeValueForKey:2U];
1386 XCTAssertEqual(dict.count, 3U);
1388 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1389 XCTAssertTrue([dict valueForKey:1U value:&value]);
1391 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1392 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1393 XCTAssertTrue([dict valueForKey:3U value:&value]);
1395 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1396 XCTAssertTrue([dict valueForKey:4U value:&value]);
1400 [dict removeValueForKey:2U];
1401 XCTAssertEqual(dict.count, 3U);
1402 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1403 XCTAssertTrue([dict valueForKey:1U value:&value]);
1405 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1406 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1407 XCTAssertTrue([dict valueForKey:3U value:&value]);
1409 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1410 XCTAssertTrue([dict valueForKey:4U value:&value]);
1413 [dict removeValueForKey:4U];
1414 XCTAssertEqual(dict.count, 2U);
1415 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1416 XCTAssertTrue([dict valueForKey:1U value:&value]);
1418 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1419 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1420 XCTAssertTrue([dict valueForKey:3U value:&value]);
1422 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1425 XCTAssertEqual(dict.count, 0U);
1426 XCTAssertFalse([dict valueForKey:1U value:NULL]);
1427 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1428 XCTAssertFalse([dict valueForKey:3U value:NULL]);
1429 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1434 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1441 XCTAssertEqual(dict.count, 4U);
1443 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1444 XCTAssertTrue([dict valueForKey:1U value:&value]);
1446 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1447 XCTAssertTrue([dict valueForKey:2U value:&value]);
1449 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1450 XCTAssertTrue([dict valueForKey:3U value:&value]);
1452 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1453 XCTAssertTrue([dict valueForKey:4U value:&value]);
1456 [dict setValue:403 forKey:1U];
1457 XCTAssertEqual(dict.count, 4U);
1458 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1459 XCTAssertTrue([dict valueForKey:1U value:&value]);
1461 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1462 XCTAssertTrue([dict valueForKey:2U value:&value]);
1464 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1465 XCTAssertTrue([dict valueForKey:3U value:&value]);
1467 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1468 XCTAssertTrue([dict valueForKey:4U value:&value]);
1471 [dict setValue:401 forKey:4U];
1472 XCTAssertEqual(dict.count, 4U);
1473 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1474 XCTAssertTrue([dict valueForKey:1U value:&value]);
1476 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1477 XCTAssertTrue([dict valueForKey:2U value:&value]);
1479 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1480 XCTAssertTrue([dict valueForKey:3U value:&value]);
1482 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1483 XCTAssertTrue([dict valueForKey:4U value:&value]);
1486 const uint32_t kKeys2[] = { 2U, 3U };
1494 XCTAssertEqual(dict.count, 4U);
1495 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1496 XCTAssertTrue([dict valueForKey:1U value:&value]);
1498 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1499 XCTAssertTrue([dict valueForKey:2U value:&value]);
1501 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1502 XCTAssertTrue([dict valueForKey:3U value:&value]);
1504 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1505 XCTAssertTrue([dict valueForKey:4U value:&value]);
1524 XCTAssertEqual(dict.count, 0U);
1525 XCTAssertFalse([dict valueForKey:1U value:NULL]);
1534 GPBUInt32BoolDictionary *dict = [GPBUInt32BoolDictionary dictionaryWithValue:YES forKey:1U];
1536 XCTAssertEqual(dict.count, 1U);
1538 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1539 XCTAssertTrue([dict valueForKey:1U value:&value]);
1541 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1543 XCTAssertEqual(aKey, 1U);
1550 const uint32_t kKeys[] = { 1U, 2U, 3U };
1557 XCTAssertEqual(dict.count, 3U);
1559 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1560 XCTAssertTrue([dict valueForKey:1U value:&value]);
1562 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1563 XCTAssertTrue([dict valueForKey:2U value:&value]);
1565 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1566 XCTAssertTrue([dict valueForKey:3U value:&value]);
1568 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1574 XCTAssertLessThan(idx, 3U);
1598 XCTAssertNotEqual(idx, 2U);
1605 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
1606 const uint32_t kKeys2[] = { 2U, 1U, 4U };
1659 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1680 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1702 XCTAssertEqual(dict.count, 0U);
1703 [dict setValue:YES forKey:1U];
1704 XCTAssertEqual(dict.count, 1U);
1706 const uint32_t kKeys[] = { 2U, 3U, 4U };
1714 XCTAssertEqual(dict.count, 4U);
1717 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1718 XCTAssertTrue([dict valueForKey:1U value:&value]);
1720 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1721 XCTAssertTrue([dict valueForKey:2U value:&value]);
1723 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1724 XCTAssertTrue([dict valueForKey:3U value:&value]);
1726 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1727 XCTAssertTrue([dict valueForKey:4U value:&value]);
1733 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1740 XCTAssertEqual(dict.count, 4U);
1742 [dict removeValueForKey:2U];
1743 XCTAssertEqual(dict.count, 3U);
1745 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1746 XCTAssertTrue([dict valueForKey:1U value:&value]);
1748 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1749 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1750 XCTAssertTrue([dict valueForKey:3U value:&value]);
1752 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1753 XCTAssertTrue([dict valueForKey:4U value:&value]);
1757 [dict removeValueForKey:2U];
1758 XCTAssertEqual(dict.count, 3U);
1759 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1760 XCTAssertTrue([dict valueForKey:1U value:&value]);
1762 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1763 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1764 XCTAssertTrue([dict valueForKey:3U value:&value]);
1766 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1767 XCTAssertTrue([dict valueForKey:4U value:&value]);
1770 [dict removeValueForKey:4U];
1771 XCTAssertEqual(dict.count, 2U);
1772 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1773 XCTAssertTrue([dict valueForKey:1U value:&value]);
1775 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1776 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1777 XCTAssertTrue([dict valueForKey:3U value:&value]);
1779 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1782 XCTAssertEqual(dict.count, 0U);
1783 XCTAssertFalse([dict valueForKey:1U value:NULL]);
1784 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1785 XCTAssertFalse([dict valueForKey:3U value:NULL]);
1786 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1791 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
1798 XCTAssertEqual(dict.count, 4U);
1800 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1801 XCTAssertTrue([dict valueForKey:1U value:&value]);
1803 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1804 XCTAssertTrue([dict valueForKey:2U value:&value]);
1806 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1807 XCTAssertTrue([dict valueForKey:3U value:&value]);
1809 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1810 XCTAssertTrue([dict valueForKey:4U value:&value]);
1813 [dict setValue:NO forKey:1U];
1814 XCTAssertEqual(dict.count, 4U);
1815 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1816 XCTAssertTrue([dict valueForKey:1U value:&value]);
1818 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1819 XCTAssertTrue([dict valueForKey:2U value:&value]);
1821 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1822 XCTAssertTrue([dict valueForKey:3U value:&value]);
1824 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1825 XCTAssertTrue([dict valueForKey:4U value:&value]);
1828 [dict setValue:YES forKey:4U];
1829 XCTAssertEqual(dict.count, 4U);
1830 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1831 XCTAssertTrue([dict valueForKey:1U value:&value]);
1833 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1834 XCTAssertTrue([dict valueForKey:2U value:&value]);
1836 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1837 XCTAssertTrue([dict valueForKey:3U value:&value]);
1839 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1840 XCTAssertTrue([dict valueForKey:4U value:&value]);
1843 const uint32_t kKeys2[] = { 2U, 3U };
1851 XCTAssertEqual(dict.count, 4U);
1852 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1853 XCTAssertTrue([dict valueForKey:1U value:&value]);
1855 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1856 XCTAssertTrue([dict valueForKey:2U value:&value]);
1858 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1859 XCTAssertTrue([dict valueForKey:3U value:&value]);
1861 XCTAssertTrue([dict valueForKey:4U value:NULL]);
1862 XCTAssertTrue([dict valueForKey:4U value:&value]);
1881 XCTAssertEqual(dict.count, 0U);
1882 XCTAssertFalse([dict valueForKey:1U value:NULL]);
1891 GPBUInt32FloatDictionary *dict = [GPBUInt32FloatDictionary dictionaryWithValue:500.f forKey:1U];
1893 XCTAssertEqual(dict.count, 1U);
1895 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1896 XCTAssertTrue([dict valueForKey:1U value:&value]);
1898 XCTAssertFalse([dict valueForKey:2U value:NULL]);
1900 XCTAssertEqual(aKey, 1U);
1907 const uint32_t kKeys[] = { 1U, 2U, 3U };
1914 XCTAssertEqual(dict.count, 3U);
1916 XCTAssertTrue([dict valueForKey:1U value:NULL]);
1917 XCTAssertTrue([dict valueForKey:1U value:&value]);
1919 XCTAssertTrue([dict valueForKey:2U value:NULL]);
1920 XCTAssertTrue([dict valueForKey:2U value:&value]);
1922 XCTAssertTrue([dict valueForKey:3U value:NULL]);
1923 XCTAssertTrue([dict valueForKey:3U value:&value]);
1925 XCTAssertFalse([dict valueForKey:4U value:NULL]);
1931 XCTAssertLessThan(idx, 3U);
1955 XCTAssertNotEqual(idx, 2U);
1962 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
1963 const uint32_t kKeys2[] = { 2U, 1U, 4U };
2016 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2037 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2059 XCTAssertEqual(dict.count, 0U);
2060 [dict setValue:500.f forKey:1U];
2061 XCTAssertEqual(dict.count, 1U);
2063 const uint32_t kKeys[] = { 2U, 3U, 4U };
2071 XCTAssertEqual(dict.count, 4U);
2074 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2075 XCTAssertTrue([dict valueForKey:1U value:&value]);
2077 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2078 XCTAssertTrue([dict valueForKey:2U value:&value]);
2080 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2081 XCTAssertTrue([dict valueForKey:3U value:&value]);
2083 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2084 XCTAssertTrue([dict valueForKey:4U value:&value]);
2090 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2097 XCTAssertEqual(dict.count, 4U);
2099 [dict removeValueForKey:2U];
2100 XCTAssertEqual(dict.count, 3U);
2102 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2103 XCTAssertTrue([dict valueForKey:1U value:&value]);
2105 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2106 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2107 XCTAssertTrue([dict valueForKey:3U value:&value]);
2109 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2110 XCTAssertTrue([dict valueForKey:4U value:&value]);
2114 [dict removeValueForKey:2U];
2115 XCTAssertEqual(dict.count, 3U);
2116 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2117 XCTAssertTrue([dict valueForKey:1U value:&value]);
2119 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2120 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2121 XCTAssertTrue([dict valueForKey:3U value:&value]);
2123 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2124 XCTAssertTrue([dict valueForKey:4U value:&value]);
2127 [dict removeValueForKey:4U];
2128 XCTAssertEqual(dict.count, 2U);
2129 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2130 XCTAssertTrue([dict valueForKey:1U value:&value]);
2132 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2133 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2134 XCTAssertTrue([dict valueForKey:3U value:&value]);
2136 XCTAssertFalse([dict valueForKey:4U value:NULL]);
2139 XCTAssertEqual(dict.count, 0U);
2140 XCTAssertFalse([dict valueForKey:1U value:NULL]);
2141 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2142 XCTAssertFalse([dict valueForKey:3U value:NULL]);
2143 XCTAssertFalse([dict valueForKey:4U value:NULL]);
2148 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2155 XCTAssertEqual(dict.count, 4U);
2157 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2158 XCTAssertTrue([dict valueForKey:1U value:&value]);
2160 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2161 XCTAssertTrue([dict valueForKey:2U value:&value]);
2163 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2164 XCTAssertTrue([dict valueForKey:3U value:&value]);
2166 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2167 XCTAssertTrue([dict valueForKey:4U value:&value]);
2170 [dict setValue:503.f forKey:1U];
2171 XCTAssertEqual(dict.count, 4U);
2172 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2173 XCTAssertTrue([dict valueForKey:1U value:&value]);
2175 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2176 XCTAssertTrue([dict valueForKey:2U value:&value]);
2178 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2179 XCTAssertTrue([dict valueForKey:3U value:&value]);
2181 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2182 XCTAssertTrue([dict valueForKey:4U value:&value]);
2185 [dict setValue:501.f forKey:4U];
2186 XCTAssertEqual(dict.count, 4U);
2187 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2188 XCTAssertTrue([dict valueForKey:1U value:&value]);
2190 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2191 XCTAssertTrue([dict valueForKey:2U value:&value]);
2193 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2194 XCTAssertTrue([dict valueForKey:3U value:&value]);
2196 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2197 XCTAssertTrue([dict valueForKey:4U value:&value]);
2200 const uint32_t kKeys2[] = { 2U, 3U };
2208 XCTAssertEqual(dict.count, 4U);
2209 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2210 XCTAssertTrue([dict valueForKey:1U value:&value]);
2212 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2213 XCTAssertTrue([dict valueForKey:2U value:&value]);
2215 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2216 XCTAssertTrue([dict valueForKey:3U value:&value]);
2218 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2219 XCTAssertTrue([dict valueForKey:4U value:&value]);
2238 XCTAssertEqual(dict.count, 0U);
2239 XCTAssertFalse([dict valueForKey:1U value:NULL]);
2248 GPBUInt32DoubleDictionary *dict = [GPBUInt32DoubleDictionary dictionaryWithValue:600. forKey:1U];
2250 XCTAssertEqual(dict.count, 1U);
2252 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2253 XCTAssertTrue([dict valueForKey:1U value:&value]);
2255 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2257 XCTAssertEqual(aKey, 1U);
2264 const uint32_t kKeys[] = { 1U, 2U, 3U };
2271 XCTAssertEqual(dict.count, 3U);
2273 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2274 XCTAssertTrue([dict valueForKey:1U value:&value]);
2276 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2277 XCTAssertTrue([dict valueForKey:2U value:&value]);
2279 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2280 XCTAssertTrue([dict valueForKey:3U value:&value]);
2282 XCTAssertFalse([dict valueForKey:4U value:NULL]);
2288 XCTAssertLessThan(idx, 3U);
2312 XCTAssertNotEqual(idx, 2U);
2319 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
2320 const uint32_t kKeys2[] = { 2U, 1U, 4U };
2373 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2394 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2416 XCTAssertEqual(dict.count, 0U);
2417 [dict setValue:600. forKey:1U];
2418 XCTAssertEqual(dict.count, 1U);
2420 const uint32_t kKeys[] = { 2U, 3U, 4U };
2428 XCTAssertEqual(dict.count, 4U);
2431 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2432 XCTAssertTrue([dict valueForKey:1U value:&value]);
2434 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2435 XCTAssertTrue([dict valueForKey:2U value:&value]);
2437 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2438 XCTAssertTrue([dict valueForKey:3U value:&value]);
2440 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2441 XCTAssertTrue([dict valueForKey:4U value:&value]);
2447 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2454 XCTAssertEqual(dict.count, 4U);
2456 [dict removeValueForKey:2U];
2457 XCTAssertEqual(dict.count, 3U);
2459 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2460 XCTAssertTrue([dict valueForKey:1U value:&value]);
2462 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2463 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2464 XCTAssertTrue([dict valueForKey:3U value:&value]);
2466 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2467 XCTAssertTrue([dict valueForKey:4U value:&value]);
2471 [dict removeValueForKey:2U];
2472 XCTAssertEqual(dict.count, 3U);
2473 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2474 XCTAssertTrue([dict valueForKey:1U value:&value]);
2476 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2477 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2478 XCTAssertTrue([dict valueForKey:3U value:&value]);
2480 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2481 XCTAssertTrue([dict valueForKey:4U value:&value]);
2484 [dict removeValueForKey:4U];
2485 XCTAssertEqual(dict.count, 2U);
2486 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2487 XCTAssertTrue([dict valueForKey:1U value:&value]);
2489 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2490 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2491 XCTAssertTrue([dict valueForKey:3U value:&value]);
2493 XCTAssertFalse([dict valueForKey:4U value:NULL]);
2496 XCTAssertEqual(dict.count, 0U);
2497 XCTAssertFalse([dict valueForKey:1U value:NULL]);
2498 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2499 XCTAssertFalse([dict valueForKey:3U value:NULL]);
2500 XCTAssertFalse([dict valueForKey:4U value:NULL]);
2505 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2512 XCTAssertEqual(dict.count, 4U);
2514 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2515 XCTAssertTrue([dict valueForKey:1U value:&value]);
2517 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2518 XCTAssertTrue([dict valueForKey:2U value:&value]);
2520 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2521 XCTAssertTrue([dict valueForKey:3U value:&value]);
2523 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2524 XCTAssertTrue([dict valueForKey:4U value:&value]);
2527 [dict setValue:603. forKey:1U];
2528 XCTAssertEqual(dict.count, 4U);
2529 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2530 XCTAssertTrue([dict valueForKey:1U value:&value]);
2532 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2533 XCTAssertTrue([dict valueForKey:2U value:&value]);
2535 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2536 XCTAssertTrue([dict valueForKey:3U value:&value]);
2538 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2539 XCTAssertTrue([dict valueForKey:4U value:&value]);
2542 [dict setValue:601. forKey:4U];
2543 XCTAssertEqual(dict.count, 4U);
2544 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2545 XCTAssertTrue([dict valueForKey:1U value:&value]);
2547 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2548 XCTAssertTrue([dict valueForKey:2U value:&value]);
2550 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2551 XCTAssertTrue([dict valueForKey:3U value:&value]);
2553 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2554 XCTAssertTrue([dict valueForKey:4U value:&value]);
2557 const uint32_t kKeys2[] = { 2U, 3U };
2565 XCTAssertEqual(dict.count, 4U);
2566 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2567 XCTAssertTrue([dict valueForKey:1U value:&value]);
2569 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2570 XCTAssertTrue([dict valueForKey:2U value:&value]);
2572 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2573 XCTAssertTrue([dict valueForKey:3U value:&value]);
2575 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2576 XCTAssertTrue([dict valueForKey:4U value:&value]);
2595 XCTAssertEqual(dict.count, 0U);
2596 XCTAssertFalse([dict valueForKey:1U value:NULL]);
2605 GPBUInt32EnumDictionary *dict = [GPBUInt32EnumDictionary dictionaryWithValue:700 forKey:1U];
2607 XCTAssertEqual(dict.count, 1U);
2609 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2610 XCTAssertTrue([dict valueForKey:1U value:&value]);
2612 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2614 XCTAssertEqual(aKey, 1U);
2621 const uint32_t kKeys[] = { 1U, 2U, 3U };
2628 XCTAssertEqual(dict.count, 3U);
2630 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2631 XCTAssertTrue([dict valueForKey:1U value:&value]);
2633 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2634 XCTAssertTrue([dict valueForKey:2U value:&value]);
2636 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2637 XCTAssertTrue([dict valueForKey:3U value:&value]);
2639 XCTAssertFalse([dict valueForKey:4U value:NULL]);
2645 XCTAssertLessThan(idx, 3U);
2669 XCTAssertNotEqual(idx, 2U);
2676 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
2677 const uint32_t kKeys2[] = { 2U, 1U, 4U };
2730 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2751 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2773 XCTAssertEqual(dict.count, 0U);
2774 [dict setValue:700 forKey:1U];
2775 XCTAssertEqual(dict.count, 1U);
2777 const uint32_t kKeys[] = { 2U, 3U, 4U };
2785 XCTAssertEqual(dict.count, 4U);
2788 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2789 XCTAssertTrue([dict valueForKey:1U value:&value]);
2791 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2792 XCTAssertTrue([dict valueForKey:2U value:&value]);
2794 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2795 XCTAssertTrue([dict valueForKey:3U value:&value]);
2797 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2798 XCTAssertTrue([dict valueForKey:4U value:&value]);
2804 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2811 XCTAssertEqual(dict.count, 4U);
2813 [dict removeValueForKey:2U];
2814 XCTAssertEqual(dict.count, 3U);
2816 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2817 XCTAssertTrue([dict valueForKey:1U value:&value]);
2819 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2820 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2821 XCTAssertTrue([dict valueForKey:3U value:&value]);
2823 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2824 XCTAssertTrue([dict valueForKey:4U value:&value]);
2828 [dict removeValueForKey:2U];
2829 XCTAssertEqual(dict.count, 3U);
2830 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2831 XCTAssertTrue([dict valueForKey:1U value:&value]);
2833 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2834 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2835 XCTAssertTrue([dict valueForKey:3U value:&value]);
2837 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2838 XCTAssertTrue([dict valueForKey:4U value:&value]);
2841 [dict removeValueForKey:4U];
2842 XCTAssertEqual(dict.count, 2U);
2843 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2844 XCTAssertTrue([dict valueForKey:1U value:&value]);
2846 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2847 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2848 XCTAssertTrue([dict valueForKey:3U value:&value]);
2850 XCTAssertFalse([dict valueForKey:4U value:NULL]);
2853 XCTAssertEqual(dict.count, 0U);
2854 XCTAssertFalse([dict valueForKey:1U value:NULL]);
2855 XCTAssertFalse([dict valueForKey:2U value:NULL]);
2856 XCTAssertFalse([dict valueForKey:3U value:NULL]);
2857 XCTAssertFalse([dict valueForKey:4U value:NULL]);
2862 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
2869 XCTAssertEqual(dict.count, 4U);
2871 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2872 XCTAssertTrue([dict valueForKey:1U value:&value]);
2874 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2875 XCTAssertTrue([dict valueForKey:2U value:&value]);
2877 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2878 XCTAssertTrue([dict valueForKey:3U value:&value]);
2880 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2881 XCTAssertTrue([dict valueForKey:4U value:&value]);
2884 [dict setValue:703 forKey:1U];
2885 XCTAssertEqual(dict.count, 4U);
2886 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2887 XCTAssertTrue([dict valueForKey:1U value:&value]);
2889 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2890 XCTAssertTrue([dict valueForKey:2U value:&value]);
2892 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2893 XCTAssertTrue([dict valueForKey:3U value:&value]);
2895 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2896 XCTAssertTrue([dict valueForKey:4U value:&value]);
2899 [dict setValue:701 forKey:4U];
2900 XCTAssertEqual(dict.count, 4U);
2901 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2902 XCTAssertTrue([dict valueForKey:1U value:&value]);
2904 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2905 XCTAssertTrue([dict valueForKey:2U value:&value]);
2907 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2908 XCTAssertTrue([dict valueForKey:3U value:&value]);
2910 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2911 XCTAssertTrue([dict valueForKey:4U value:&value]);
2914 const uint32_t kKeys2[] = { 2U, 3U };
2922 XCTAssertEqual(dict.count, 4U);
2923 XCTAssertTrue([dict valueForKey:1U value:NULL]);
2924 XCTAssertTrue([dict valueForKey:1U value:&value]);
2926 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2927 XCTAssertTrue([dict valueForKey:2U value:&value]);
2929 XCTAssertTrue([dict valueForKey:3U value:NULL]);
2930 XCTAssertTrue([dict valueForKey:3U value:&value]);
2932 XCTAssertTrue([dict valueForKey:4U value:NULL]);
2933 XCTAssertTrue([dict valueForKey:4U value:&value]);
2950 const uint32_t kKeys[] = { 1U, 2U, 3U };
2958 XCTAssertEqual(dict.count, 3U);
2961 XCTAssertTrue([dict valueForKey:1U rawValue:NULL]);
2962 XCTAssertTrue([dict valueForKey:1U rawValue:&value]);
2964 XCTAssertTrue([dict valueForKey:2U value:NULL]);
2965 XCTAssertTrue([dict valueForKey:2U value:&value]);
2967 XCTAssertTrue([dict valueForKey:2U rawValue:NULL]);
2968 XCTAssertTrue([dict valueForKey:2U rawValue:&value]);
2970 XCTAssertTrue([dict valueForKey:3U rawValue:NULL]);
2971 XCTAssertTrue([dict valueForKey:3U rawValue:&value]);
2973 XCTAssertFalse([dict valueForKey:4U rawValue:NULL]);
2979 XCTAssertLessThan(idx, 3U);
3001 XCTAssertLessThan(idx, 3U);
3025 XCTAssertNotEqual(idx, 2U);
3032 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
3033 const uint32_t kKeys2[] = { 2U, 1U, 4U };
3091 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3113 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3138 XCTAssertEqual(dict.count, 0U);
3139 XCTAssertThrowsSpecificNamed([dict setValue:801 forKey:2U], // Unknown
3141 XCTAssertEqual(dict.count, 0U);
3142 [dict setRawValue:801 forKey:2U]; // Unknown
3143 XCTAssertEqual(dict.count, 1U);
3145 const uint32_t kKeys[] = { 1U, 3U, 4U };
3153 XCTAssertEqual(dict.count, 4U);
3156 XCTAssertTrue([dict valueForKey:1U value:NULL]);
3157 XCTAssertTrue([dict valueForKey:1U value:&value]);
3159 XCTAssertTrue([dict valueForKey:2U value:NULL]);
3160 XCTAssertTrue([dict valueForKey:2U value:&value]);
3162 XCTAssertTrue([dict valueForKey:2U rawValue:NULL]);
3163 XCTAssertTrue([dict valueForKey:2U rawValue:&value]);
3165 XCTAssertTrue([dict valueForKey:3U value:NULL]);
3166 XCTAssertTrue([dict valueForKey:3U value:&value]);
3168 XCTAssertTrue([dict valueForKey:4U value:NULL]);
3169 XCTAssertTrue([dict valueForKey:4U value:&value]);
3171 XCTAssertTrue([dict valueForKey:4U rawValue:NULL]);
3172 XCTAssertTrue([dict valueForKey:4U rawValue:&value]);
3178 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3186 XCTAssertEqual(dict.count, 4U);
3188 [dict removeValueForKey:2U];
3189 XCTAssertEqual(dict.count, 3U);
3191 XCTAssertTrue([dict valueForKey:1U value:NULL]);
3192 XCTAssertTrue([dict valueForKey:1U value:&value]);
3194 XCTAssertFalse([dict valueForKey:2U value:NULL]);
3195 XCTAssertTrue([dict valueForKey:3U value:NULL]);
3196 XCTAssertTrue([dict valueForKey:3U value:&value]);
3198 XCTAssertTrue([dict valueForKey:4U rawValue:NULL]);
3199 XCTAssertTrue([dict valueForKey:4U rawValue:&value]);
3203 [dict removeValueForKey:2U];
3204 XCTAssertEqual(dict.count, 3U);
3205 XCTAssertTrue([dict valueForKey:1U value:NULL]);
3206 XCTAssertTrue([dict valueForKey:1U value:&value]);
3208 XCTAssertFalse([dict valueForKey:2U value:NULL]);
3209 XCTAssertTrue([dict valueForKey:3U value:NULL]);
3210 XCTAssertTrue([dict valueForKey:3U value:&value]);
3212 XCTAssertTrue([dict valueForKey:4U rawValue:NULL]);
3213 XCTAssertTrue([dict valueForKey:4U rawValue:&value]);
3216 [dict removeValueForKey:4U];
3217 XCTAssertEqual(dict.count, 2U);
3218 XCTAssertTrue([dict valueForKey:1U value:NULL]);
3219 XCTAssertTrue([dict valueForKey:1U value:&value]);
3221 XCTAssertFalse([dict valueForKey:2U value:NULL]);
3222 XCTAssertTrue([dict valueForKey:3U value:NULL]);
3223 XCTAssertTrue([dict valueForKey:3U value:&value]);
3225 XCTAssertFalse([dict valueForKey:4U value:NULL]);
3228 XCTAssertEqual(dict.count, 0U);
3229 XCTAssertFalse([dict valueForKey:1U value:NULL]);
3230 XCTAssertFalse([dict valueForKey:2U value:NULL]);
3231 XCTAssertFalse([dict valueForKey:3U value:NULL]);
3232 XCTAssertFalse([dict valueForKey:4U value:NULL]);
3237 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3245 XCTAssertEqual(dict.count, 4U);
3247 XCTAssertTrue([dict valueForKey:1U value:NULL]);
3248 XCTAssertTrue([dict valueForKey:1U value:&value]);
3250 XCTAssertTrue([dict valueForKey:2U rawValue:NULL]);
3251 XCTAssertTrue([dict valueForKey:2U rawValue:&value]);
3253 XCTAssertTrue([dict valueForKey:3U value:NULL]);
3254 XCTAssertTrue([dict valueForKey:3U value:&value]);
3256 XCTAssertTrue([dict valueForKey:4U rawValue:NULL]);
3257 XCTAssertTrue([dict valueForKey:4U rawValue:&value]);
3260 XCTAssertThrowsSpecificNamed([dict setValue:803 forKey:1U], // Unknown
3262 XCTAssertEqual(dict.count, 4U);
3263 XCTAssertTrue([dict valueForKey:1U value:NULL]);
3264 XCTAssertTrue([dict valueForKey:1U value:&value]);
3266 XCTAssertTrue([dict valueForKey:2U rawValue:NULL]);
3267 XCTAssertTrue([dict valueForKey:2U rawValue:&value]);
3269 XCTAssertTrue([dict valueForKey:3U value:NULL]);
3270 XCTAssertTrue([dict valueForKey:3U value:&value]);
3272 XCTAssertTrue([dict valueForKey:4U rawValue:NULL]);
3273 XCTAssertTrue([dict valueForKey:4U rawValue:&value]);
3276 [dict setRawValue:803 forKey:1U]; // Unknown
3277 XCTAssertEqual(dict.count, 4U);
3278 XCTAssertTrue([dict valueForKey:1U rawValue:NULL]);
3279 XCTAssertTrue([dict valueForKey:1U rawValue:&value]);
3281 XCTAssertTrue([dict valueForKey:2U rawValue:NULL]);
3282 XCTAssertTrue([dict valueForKey:2U rawValue:&value]);
3284 XCTAssertTrue([dict valueForKey:3U value:NULL]);
3285 XCTAssertTrue([dict valueForKey:3U value:&value]);
3287 XCTAssertTrue([dict valueForKey:4U rawValue:NULL]);
3288 XCTAssertTrue([dict valueForKey:4U rawValue:&value]);
3291 [dict setRawValue:700 forKey:4U];
3292 XCTAssertEqual(dict.count, 4U);
3293 XCTAssertTrue([dict valueForKey:1U rawValue:NULL]);
3294 XCTAssertTrue([dict valueForKey:1U rawValue:&value]);
3296 XCTAssertTrue([dict valueForKey:2U rawValue:NULL]);
3297 XCTAssertTrue([dict valueForKey:2U rawValue:&value]);
3299 XCTAssertTrue([dict valueForKey:3U value:NULL]);
3300 XCTAssertTrue([dict valueForKey:3U value:&value]);
3302 XCTAssertTrue([dict valueForKey:4U value:NULL]);
3303 XCTAssertTrue([dict valueForKey:4U value:&value]);
3306 const uint32_t kKeys2[] = { 2U, 3U };
3315 XCTAssertEqual(dict.count, 4U);
3316 XCTAssertTrue([dict valueForKey:1U rawValue:NULL]);
3317 XCTAssertTrue([dict valueForKey:1U rawValue:&value]);
3319 XCTAssertTrue([dict valueForKey:2U value:NULL]);
3320 XCTAssertTrue([dict valueForKey:2U value:&value]);
3322 XCTAssertTrue([dict valueForKey:3U rawValue:NULL]);
3323 XCTAssertTrue([dict valueForKey:3U rawValue:&value]);
3325 XCTAssertTrue([dict valueForKey:4U value:NULL]);
3326 XCTAssertTrue([dict valueForKey:4U value:&value]);
3334 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3368 XCTAssertEqual(dict.count, 0U);
3369 XCTAssertNil([dict objectForKey:1U]);
3378 …ectDictionary<NSString*> *dict = [GPBUInt32ObjectDictionary dictionaryWithObject:@"abc" forKey:1U];
3380 XCTAssertEqual(dict.count, 1U);
3381 XCTAssertEqualObjects([dict objectForKey:1U], @"abc");
3382 XCTAssertNil([dict objectForKey:2U]);
3384 XCTAssertEqual(aKey, 1U);
3391 const uint32_t kKeys[] = { 1U, 2U, 3U };
3398 XCTAssertEqual(dict.count, 3U);
3399 XCTAssertEqualObjects([dict objectForKey:1U], @"abc");
3400 XCTAssertEqualObjects([dict objectForKey:2U], @"def");
3401 XCTAssertEqualObjects([dict objectForKey:3U], @"ghi");
3402 XCTAssertNil([dict objectForKey:4U]);
3408 XCTAssertLessThan(idx, 3U);
3432 XCTAssertNotEqual(idx, 2U);
3439 const uint32_t kKeys1[] = { 1U, 2U, 3U, 4U };
3440 const uint32_t kKeys2[] = { 2U, 1U, 4U };
3493 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3514 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3536 XCTAssertEqual(dict.count, 0U);
3537 [dict setObject:@"abc" forKey:1U];
3538 XCTAssertEqual(dict.count, 1U);
3540 const uint32_t kKeys[] = { 2U, 3U, 4U };
3548 XCTAssertEqual(dict.count, 4U);
3550 XCTAssertEqualObjects([dict objectForKey:1U], @"abc");
3551 XCTAssertEqualObjects([dict objectForKey:2U], @"def");
3552 XCTAssertEqualObjects([dict objectForKey:3U], @"ghi");
3553 XCTAssertEqualObjects([dict objectForKey:4U], @"jkl");
3558 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3565 XCTAssertEqual(dict.count, 4U);
3567 [dict removeObjectForKey:2U];
3568 XCTAssertEqual(dict.count, 3U);
3569 XCTAssertEqualObjects([dict objectForKey:1U], @"abc");
3570 XCTAssertNil([dict objectForKey:2U]);
3571 XCTAssertEqualObjects([dict objectForKey:3U], @"ghi");
3572 XCTAssertEqualObjects([dict objectForKey:4U], @"jkl");
3575 [dict removeObjectForKey:2U];
3576 XCTAssertEqual(dict.count, 3U);
3577 XCTAssertEqualObjects([dict objectForKey:1U], @"abc");
3578 XCTAssertNil([dict objectForKey:2U]);
3579 XCTAssertEqualObjects([dict objectForKey:3U], @"ghi");
3580 XCTAssertEqualObjects([dict objectForKey:4U], @"jkl");
3582 [dict removeObjectForKey:4U];
3583 XCTAssertEqual(dict.count, 2U);
3584 XCTAssertEqualObjects([dict objectForKey:1U], @"abc");
3585 XCTAssertNil([dict objectForKey:2U]);
3586 XCTAssertEqualObjects([dict objectForKey:3U], @"ghi");
3587 XCTAssertNil([dict objectForKey:4U]);
3590 XCTAssertEqual(dict.count, 0U);
3591 XCTAssertNil([dict objectForKey:1U]);
3592 XCTAssertNil([dict objectForKey:2U]);
3593 XCTAssertNil([dict objectForKey:3U]);
3594 XCTAssertNil([dict objectForKey:4U]);
3599 const uint32_t kKeys[] = { 1U, 2U, 3U, 4U };
3606 XCTAssertEqual(dict.count, 4U);
3607 XCTAssertEqualObjects([dict objectForKey:1U], @"abc");
3608 XCTAssertEqualObjects([dict objectForKey:2U], @"def");
3609 XCTAssertEqualObjects([dict objectForKey:3U], @"ghi");
3610 XCTAssertEqualObjects([dict objectForKey:4U], @"jkl");
3612 [dict setObject:@"jkl" forKey:1U];
3613 XCTAssertEqual(dict.count, 4U);
3614 XCTAssertEqualObjects([dict objectForKey:1U], @"jkl");
3615 XCTAssertEqualObjects([dict objectForKey:2U], @"def");
3616 XCTAssertEqualObjects([dict objectForKey:3U], @"ghi");
3617 XCTAssertEqualObjects([dict objectForKey:4U], @"jkl");
3619 [dict setObject:@"def" forKey:4U];
3620 XCTAssertEqual(dict.count, 4U);
3621 XCTAssertEqualObjects([dict objectForKey:1U], @"jkl");
3622 XCTAssertEqualObjects([dict objectForKey:2U], @"def");
3623 XCTAssertEqualObjects([dict objectForKey:3U], @"ghi");
3624 XCTAssertEqualObjects([dict objectForKey:4U], @"def");
3626 const uint32_t kKeys2[] = { 2U, 3U };
3634 XCTAssertEqual(dict.count, 4U);
3635 XCTAssertEqualObjects([dict objectForKey:1U], @"jkl");
3636 XCTAssertEqualObjects([dict objectForKey:2U], @"ghi");
3637 XCTAssertEqualObjects([dict objectForKey:3U], @"abc");
3638 XCTAssertEqualObjects([dict objectForKey:4U], @"def");
3646 //%PDDM-EXPAND-END TEST_FOR_POD_KEY(UInt32, uint32_t, 1U, 2U, 3U, 4U)