Lines Matching refs:aa

51     int[string] aa;  in test2()
59 assert(aa == null); in test2()
60 assert(aa.length == 0); in test2()
62 keys = aa.keys; in test2()
65 values = aa.values; in test2()
68 aa.rehash; in test2()
69 assert(aa.length == 0); in test2()
73 aa["hello"] = 3; in test2()
74 assert(aa["hello"] == 3); in test2()
75 aa["hello"]++; in test2()
76 assert(aa["hello"] == 4); in test2()
78 assert(aa.length == 1); in test2()
80 keys = aa.keys; in test2()
84 values = aa.values; in test2()
88 aa.rehash; in test2()
89 assert(aa.length == 1); in test2()
90 assert(aa["hello"] == 4); in test2()
351 int[char[]] aa; in test14()
353 aa["hello"] = 3; in test14()
354 assert(aa["hello"] == 3); in test14()
355 assert("hello" in aa); in test14()
357 aa.remove("hello"); in test14()
358 assert(!("hello" in aa)); in test14()
425 int[int] aa; in test16()
433 aa[key] = value; in test16()
436 int[] keys = aa.keys; in test16()
437 assert(keys.length == aa.length); in test16()
442 assert(k in aa); in test16()
443 j += aa[k]; in test16()
448 foreach (k, v; aa) in test16()
450 assert(k in aa); in test16()
451 assert(aa[k] == v); in test16()
457 foreach (v; aa) in test16()
463 int[] values = aa.values; in test16()
464 assert(values.length == aa.length); in test16()
468 aa.remove(k); in test16()
470 assert(aa.length == 0); in test16()
477 aa[key2] = value2; in test16()
479 foreach(k; aa) in test16()
484 foreach(k, v; aa) in test16()
535 int[uint] aa; in test18()
537 aa[1236448822] = 0; in test18()
538 aa[2716102924] = 1; in test18()
539 aa[ 315901071] = 2; in test18()
541 aa.remove(1236448822); in test18()
542 printf("%d\n", aa[2716102924]); in test18()
543 assert(aa[2716102924] == 1); in test18()
551 immutable(char[5])[int] aa = ([3:"hello", 4:"betty"]); in test19()
553 assert(aa[3] == "hello"); in test19()
554 assert(aa[4] == "betty"); in test19()
556 auto keys = aa.keys; in test19()
560 auto vs = aa.values; in test19()
564 string aavalue_typeid = typeid(typeof(aa.values)).toString(); in test19()
567 printf("%.*s\n", aa[3].length, aa[3].ptr); in test19()
568 printf("%.*s\n", aa[4].length, aa[4].ptr); in test19()
575 string[int] aa = ([3:"hello", 4:"betty"]); in test20()
577 assert(aa[3] == "hello"); in test20()
578 assert(aa[4] == "betty"); in test20()
580 auto keys = aa.keys; in test20()
584 auto values = aa.values; in test20()
588 string aavalue_typeid = typeid(typeof(aa.values)).toString(); in test20()
591 printf("%.*s\n", aa[3].length, aa[3].ptr); in test20()
592 printf("%.*s\n", aa[4].length, aa[4].ptr); in test20()
600 int[ushort[20]] aa; in test21()
601 aa[key] = 42; in test21()
602 auto x = aa[key]; in test21()
639 string[string] aa; in test25()
640 foreach (k,v; aa) in test25()
724 int[string] aa; in test30()
728 aa[s] = i; in test30()
754 uint[ushort] aa; in test32()
755 aa[1] = 1; in test32()
756 aa[2] = 2; in test32()
757 aa[3] = 3; in test32()
758 aa[4] = 4; in test32()
759 aa[5] = 5; in test32()
760 foreach(v; aa) in test32()
823 S[int] aa; in test6178a()
824 assert(aa.length == 0); in test6178a()
826 aa[makeKey()] = S(); in test6178a()
828 assert(aa.length == 1 && 1 in aa); in test6178a()
830 aa[1] = S(); in test6178a()
832 assert(aa.length == 1 && 1 in aa); in test6178a()
867 S[int] aa; in test6178b()
868 assert(aa.length == 0); in test6178b()
870 aa[makeKey()] = 20; in test6178b()
872 assert(aa.length == 1 && (1 in aa)); in test6178b()
874 aa[1] = 30; in test6178b()
876 assert(aa.length == 1 && 1 in aa); in test6178b()
892 S[int] aa; in test6178c()
893 assert(aa.length == 0); in test6178c()
899 try { aa[1] = 1; assert(0); } catch (RangeError) {} in test6178c()
902 try { aa[1].opAssign(1); assert(0); } catch (RangeError) {} in test6178c()
904 assert(aa.length == 0); in test6178c()
906 aa[1] = S(); in test6178c()
907 aa[1] = 1; in test6178c()
908 assert(aa.length == 1); in test6178c()
926 S[int] aa; in test6178d()
928 assert(aa.length == 0); in test6178d()
930 aa[1] = 0; // implicit ctor call + blit assign in test6178d()
931 assert(aa[1].value == 0 && ctor == 1); in test6178d()
932 assert(aa.length == 1); in test6178d()
934 aa[1] = 1; // set through alias this in test6178d()
935 assert(aa[1].value == 1 && ctor == 1); in test6178d()
936 assert(aa.length == 1); in test6178d()
951 S[int] aa; in test6178e()
952 assert(aa.length == 0); in test6178e()
958 try { aa[1] = 1; assert(0); } catch (RangeError) {} in test6178e()
961 try { aa[1].value = 1; assert(0); } catch (RangeError) {} in test6178e()
963 assert(aa.length == 0); in test6178e()
965 aa[1] = S(0); // construct + blit assign in test6178e()
966 assert(aa[1].value == 0 && aa.length == 1); in test6178e()
968 aa[1] = 1; // set through alias this in test6178e()
969 assert(aa[1].value == 1 && aa.length == 1); in test6178e()
1126 int[int] aa; in test6433()
1127 static assert(aa.sizeof != 0); in test6433()
1128 static assert(aa.alignof != 0); in test6433()
1129 static assert(is(typeof(aa.init) == int[int])); in test6433()
1130 static assert(typeof(aa).mangleof == "Hii"); in test6433()
1131 static assert(typeof(aa).stringof == "int[int]"); in test6433()
1132 static struct AA { int[int] aa; } in test6433()
1133 static assert(AA.aa.offsetof == 0); in test6433()
1135 aa = aa.init; in test6433()
1136 aa[0] = 1; in test6433()
1137 assert(aa.length == 1 && aa[0] == 1); in test6433()
1165 TickDuration[Object] aa; in test7365()
1166 aa.keys; in test7365()
1195 int[ChunkLoc] aa; in test6799()
1196 aa.remove(Get()); in test6799()
1205 static Bar[string] aa; in test11359()
1206 static ref fun() { return aa; } in test11359()
1211 assert(aa.length == 1); in test11359()
1259 S14089[int] aa; in test14089()
1260 S14089 b = aa[1] = S14089(0); in test14089()
1261 assert(aa[1].num == 0); in test14089()