int main(int argc, char **argv)
{
  Soccer* controller = new Soccer();
  controller->run();
  delete controller;
  return EXIT_FAILURE;
}
Example #2
0
    void testCase4() {
        int wins_[] = {13, 79, 26, 73, 14, 89, 71, 37, 89, 71, 19, 59, 39};
        vector<int> wins(wins_, wins_ + (sizeof(wins_) / sizeof(wins_[0])));
        int ties_[] = {88, 27, 5, 70, 84, 94, 20, 50, 2, 11, 31, 22, 50};
        vector<int> ties(ties_, ties_ + (sizeof(ties_) / sizeof(ties_[0])));
		int expected_ = 361;
        assertEquals(4, expected_, solution.maxPoints(wins, ties));
    }
Example #3
0
    void testCase3() {
        int wins_[] = {0, 0, 0, 0};
        vector<int> wins(wins_, wins_ + (sizeof(wins_) / sizeof(wins_[0])));
        int ties_[] = {0, 0, 0, 0};
        vector<int> ties(ties_, ties_ + (sizeof(ties_) / sizeof(ties_[0])));
		int expected_ = 0;
        assertEquals(3, expected_, solution.maxPoints(wins, ties));
    }
Example #4
0
    void testCase1() {
        int wins_[] = {12, 45, 20, 17, 48, 0};
        vector<int> wins(wins_, wins_ + (sizeof(wins_) / sizeof(wins_[0])));
        int ties_[] = {48, 10, 53, 94, 0, 100};
        vector<int> ties(ties_, ties_ + (sizeof(ties_) / sizeof(ties_[0])));
		int expected_ = 145;
        assertEquals(1, expected_, solution.maxPoints(wins, ties));
    }
Example #5
0
    void testCase0() {
        int wins_[] = {1, 4, 3, 0, 0};
        vector<int> wins(wins_, wins_ + (sizeof(wins_) / sizeof(wins_[0])));
        int ties_[] = {3, 1, 5, 3, 1};
        vector<int> ties(ties_, ties_ + (sizeof(ties_) / sizeof(ties_[0])));
		int expected_ = 14;
        assertEquals(0, expected_, solution.maxPoints(wins, ties));
    }
Example #6
0
int main () 
{
	Soccer duck;
  	vector <int> w;
	vector <int> t;
	w.push_back(1);
  	w.push_back(4);
  	w.push_back(3);
	w.push_back(0);
  	w.push_back(0);
	t.push_back(3);
  	t.push_back(1);
  	t.push_back(5);
	t.push_back(3);
  	t.push_back(1);
	int r = duck.maxPoints(w,t);
	cout << "return: " << r << endl;
	return 0;
}