Lines Matching refs:numSymbols
515 int i, numSymbols, count1, count2; in testDictionary() local
566 for (i = 0, numSymbols = 0; i < numStrCache; i++) { in testDictionary()
569 symCache[numSymbols++] = sym; in testDictionary()
575 (OSObject **) symCache, symCache, numSymbols, numSymbols); in testDictionary()
578 for (i = 0; i < numSymbols; i++) { in testDictionary()
581 TEST_ASSERT('D', "2b", count1 == numSymbols); in testDictionary()
583 TEST_ASSERT('D', "2c", numSymbols == (int) dict1->getCount()); in testDictionary()
584 TEST_ASSERT('D', "2d", numSymbols == (int) dict1->getCapacity()); in testDictionary()
586 numSymbols == (int) dict1->getCapacityIncrement()); in testDictionary()
598 for (i = 0; i < numSymbols; i++) { in testDictionary()
602 TEST_ASSERT('D', "2g", count1 == numSymbols); in testDictionary()
608 for (i = 0, numSymbols = 0; i < numStrCache; i++) { in testDictionary()
611 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]); in testDictionary()
612 symCache[numSymbols] = sym; in testDictionary()
613 numSymbols++; in testDictionary()
620 numSymbols, numSymbols); in testDictionary()
623 for (i = 0; i < numSymbols; i++) { in testDictionary()
627 TEST_ASSERT('D', "3b", count1 == numSymbols); in testDictionary()
628 TEST_ASSERT('D', "3c", count2 == numSymbols); in testDictionary()
631 for (i = 0; i < numSymbols; i++) { in testDictionary()
636 TEST_ASSERT('D', "3d", count1 == numSymbols); in testDictionary()
637 TEST_ASSERT('D', "3e", count2 == numSymbols); in testDictionary()
640 for (i = 0; i < numSymbols; i++) { in testDictionary()
646 TEST_ASSERT('D', "3f", count1 == numSymbols); in testDictionary()
647 TEST_ASSERT('D', "3g", count2 == numSymbols); in testDictionary()
652 for (i = 0; i < numSymbols; i++) { in testDictionary()
658 TEST_ASSERT('D', "3h", count1 == numSymbols); in testDictionary()
665 for (i = 0, numSymbols = 0; i < numStrCache; i++) { in testDictionary()
668 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]); in testDictionary()
669 symCache[numSymbols] = sym; in testDictionary()
670 numSymbols++; in testDictionary()
680 for (i = 0; i < numSymbols; i++) { in testDictionary()
686 TEST_ASSERT('D', "4b", numSymbols == (int) dict1->getCount()); in testDictionary()
687 TEST_ASSERT('D', "4c", numSymbols == count1); in testDictionary()
688 TEST_ASSERT('D', "4d", numSymbols == count2); in testDictionary()
690 dict2 = OSDictionary::withDictionary(dict1, numSymbols - 1); in testDictionary()
692 dict2 = OSDictionary::withDictionary(dict1, numSymbols); in testDictionary()
698 TEST_ASSERT('D', "4f", numSymbols == (int) dict2->getCount()); in testDictionary()
701 for (i = 0; i < numSymbols; i++) { in testDictionary()
712 TEST_ASSERT('D', "4g", numSymbols == count1); in testDictionary()
713 TEST_ASSERT('D', "4h", numSymbols == count2); in testDictionary()
716 for (i = 0; i < numSymbols; i++) { in testDictionary()
724 TEST_ASSERT('D', "4i", numSymbols == count1); in testDictionary()
725 TEST_ASSERT('D', "4j", numSymbols == count2); in testDictionary()
752 int i, numSymbols, count1, count2, count3; in testIterator() local
755 for (i = 0, numSymbols = 0; i < numStrCache; i++) { in testIterator()
758 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]); in testIterator()
759 symCache[numSymbols] = sym; in testIterator()
760 numSymbols++; in testIterator()
769 array = OSArray::withCapacity(numSymbols); in testIterator()
773 for (i = numSymbols; --i >= 0;) { in testIterator()
776 TEST_ASSERT('I', "1b", count1 == numSymbols); in testIterator()
791 TEST_ASSERT('I', "1e", count1 == numSymbols); in testIterator()
792 TEST_ASSERT('I', "1f", count2 == numSymbols); in testIterator()
793 TEST_ASSERT('I', "1g", count3 == numSymbols); in testIterator()
820 TEST_ASSERT('I', "1l", count1 == numSymbols); in testIterator()
821 TEST_ASSERT('I', "1m", i == numSymbols); in testIterator()
839 set = OSSet::withCapacity(numSymbols); in testIterator()
843 for (i = 0; i < numSymbols; i++) { in testIterator()
846 TEST_ASSERT('I', "2b", count1 == numSymbols); in testIterator()
861 TEST_ASSERT('I', "2e", count1 == numSymbols); in testIterator()
862 TEST_ASSERT('I', "2f", count2 == numSymbols); in testIterator()
863 TEST_ASSERT('I', "2g", count3 == numSymbols); in testIterator()
883 TEST_ASSERT('I', "2l", count1 == numSymbols); in testIterator()
884 TEST_ASSERT('I', "2m", i == numSymbols); in testIterator()
910 dict = OSDictionary::withCapacity(numSymbols); in testIterator()
914 for (i = 0; i < numSymbols; i++) { in testIterator()
917 TEST_ASSERT('I', "3b", count1 == numSymbols); in testIterator()
932 TEST_ASSERT('I', "3e", count1 == numSymbols); in testIterator()
933 TEST_ASSERT('I', "3f", count2 == numSymbols); in testIterator()
934 TEST_ASSERT('I', "3g", count3 == numSymbols); in testIterator()
959 TEST_ASSERT('I', "3l", count1 == numSymbols); in testIterator()
960 TEST_ASSERT('I', "3m", count2 == numSymbols); in testIterator()
961 TEST_ASSERT('I', "3n", i == numSymbols); in testIterator()
965 str = (OSString *) dict->__takeObject(symCache[numSymbols - 1]); in testIterator()
966 dict->setObject(str, symCache[numSymbols - 1]); in testIterator()
984 for (i = 0; i < numSymbols; i++) { in testIterator()
990 TEST_ASSERT('I', "4a", count1 == numSymbols); in testIterator()
991 TEST_ASSERT('I', "4b", count2 == numSymbols); in testIterator()