Esempio n. 1
0
// BEGIN CUT HERE
void main( int argc, char* argv[] ) {
    {
        int numbersARRAY[] = {9, 2};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(0, theObject.CountNumbers(numbers),3);
    }
    {
        int numbersARRAY[] = {8, 2};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(1, theObject.CountNumbers(numbers),3);
    }
    {
        int numbersARRAY[] = {50};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(2, theObject.CountNumbers(numbers),1);
    }
    {
        int numbersARRAY[] = {1, 5, 8, 30, 15, 4};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(3, theObject.CountNumbers(numbers),11);
    }
    {
        int numbersARRAY[] = {1, 2, 4, 8, 16, 32, 64};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(4, theObject.CountNumbers(numbers),7);
    }
    {
        int numbersARRAY[] = {6, 2, 18};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(5, theObject.CountNumbers(numbers),7);
    }
}
Esempio n. 2
0
int main() {
    {
        int numbersARRAY[] = {93, 37, 77, 96, 7, 59, 8, 90, 45, 91, 44, 58, 40, 74, 47, 35, 88, 99, 92, 66};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(0, theObject.CountNumbers(numbers),3);
    }
    {
        int numbersARRAY[] = {8, 2};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(1, theObject.CountNumbers(numbers),3);
    }
    {
        int numbersARRAY[] = {50};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(2, theObject.CountNumbers(numbers),1);
    }
    {
        int numbersARRAY[] = {1, 5, 8, 30, 15, 4};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(3, theObject.CountNumbers(numbers),11);
    }
    {
        int numbersARRAY[] = {1, 2, 4, 8, 16, 32, 64};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(4, theObject.CountNumbers(numbers),7);
    }
    {
        int numbersARRAY[] = {6, 2, 18};
        vector <int> numbers( numbersARRAY, numbersARRAY+ARRSIZE(numbersARRAY) );
        DivideByZero theObject;
        eq(5, theObject.CountNumbers(numbers),7);
    }
}