Lines Matching defs:numSymbols
489 int i, numSymbols, count1, count2;
537 for (i = 0, numSymbols = 0; i < numStrCache; i++) {
540 symCache[numSymbols++] = sym;
545 (OSObject **) symCache, symCache, numSymbols, numSymbols);
548 for (i = 0; i < numSymbols; i++)
550 TEST_ASSERT('D', "2b", count1 == numSymbols);
552 TEST_ASSERT('D', "2c", numSymbols == (int) dict1->getCount());
553 TEST_ASSERT('D', "2d", numSymbols == (int) dict1->getCapacity());
555 numSymbols == (int) dict1->getCapacityIncrement());
567 for (i = 0; i < numSymbols; i++) {
571 TEST_ASSERT('D', "2g", count1 == numSymbols);
577 for (i = 0, numSymbols = 0; i < numStrCache; i++) {
580 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]);
581 symCache[numSymbols] = sym;
582 numSymbols++;
589 numSymbols, numSymbols);
592 for (i = 0; i < numSymbols; i++) {
596 TEST_ASSERT('D', "3b", count1 == numSymbols);
597 TEST_ASSERT('D', "3c", count2 == numSymbols);
600 for (i = 0; i < numSymbols; i++) {
605 TEST_ASSERT('D', "3d", count1 == numSymbols);
606 TEST_ASSERT('D', "3e", count2 == numSymbols);
609 for (i = 0; i < numSymbols; i++) {
615 TEST_ASSERT('D', "3f", count1 == numSymbols);
616 TEST_ASSERT('D', "3g", count2 == numSymbols);
621 for (i = 0; i < numSymbols; i++) {
627 TEST_ASSERT('D', "3h", count1 == numSymbols);
634 for (i = 0, numSymbols = 0; i < numStrCache; i++) {
637 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]);
638 symCache[numSymbols] = sym;
639 numSymbols++;
649 for (i = 0; i < numSymbols; i++) {
655 TEST_ASSERT('D', "4b", numSymbols == (int) dict1->getCount());
656 TEST_ASSERT('D', "4c", numSymbols == count1);
657 TEST_ASSERT('D', "4d", numSymbols == count2);
659 dict2 = OSDictionary::withDictionary(dict1, numSymbols-1);
661 dict2 = OSDictionary::withDictionary(dict1, numSymbols);
667 TEST_ASSERT('D', "4f", numSymbols == (int) dict2->getCount());
670 for (i = 0; i < numSymbols; i++) {
681 TEST_ASSERT('D', "4g", numSymbols == count1);
682 TEST_ASSERT('D', "4h", numSymbols == count2);
685 for (i = 0; i < numSymbols; i++) {
693 TEST_ASSERT('D', "4i", numSymbols == count1);
694 TEST_ASSERT('D', "4j", numSymbols == count2);
719 int i, numSymbols, count1, count2, count3;
722 for (i = 0, numSymbols = 0; i < numStrCache; i++) {
725 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]);
726 symCache[numSymbols] = sym;
727 numSymbols++;
736 array = OSArray::withCapacity(numSymbols);
740 for (i = numSymbols; --i >= 0; )
742 TEST_ASSERT('I', "1b", count1 == numSymbols);
757 TEST_ASSERT('I', "1e", count1 == numSymbols);
758 TEST_ASSERT('I', "1f", count2 == numSymbols);
759 TEST_ASSERT('I', "1g", count3 == numSymbols);
784 TEST_ASSERT('I', "1l", count1 == numSymbols);
785 TEST_ASSERT('I', "1m", i == numSymbols);
799 set = OSSet::withCapacity(numSymbols);
803 for (i = 0; i < numSymbols; i++)
805 TEST_ASSERT('I', "2b", count1 == numSymbols);
820 TEST_ASSERT('I', "2e", count1 == numSymbols);
821 TEST_ASSERT('I', "2f", count2 == numSymbols);
822 TEST_ASSERT('I', "2g", count3 == numSymbols);
840 TEST_ASSERT('I', "2l", count1 == numSymbols);
841 TEST_ASSERT('I', "2m", i == numSymbols);
863 dict = OSDictionary::withCapacity(numSymbols);
867 for (i = 0; i < numSymbols; i++)
869 TEST_ASSERT('I', "3b", count1 == numSymbols);
884 TEST_ASSERT('I', "3e", count1 == numSymbols);
885 TEST_ASSERT('I', "3f", count2 == numSymbols);
886 TEST_ASSERT('I', "3g", count3 == numSymbols);
911 TEST_ASSERT('I', "3l", count1 == numSymbols);
912 TEST_ASSERT('I', "3m", count2 == numSymbols);
913 TEST_ASSERT('I', "3n", i == numSymbols);
917 str = (OSString *) dict->__takeObject(symCache[numSymbols-1]);
918 dict->setObject(str, symCache[numSymbols-1]);
932 for (i = 0; i < numSymbols; i++) {
938 TEST_ASSERT('I', "4a", count1 == numSymbols);
939 TEST_ASSERT('I', "4b", count2 == numSymbols);