static int runTestCase(int casenum) {
		switch (casenum) {
		case 0: {
			int[] length = { 5, 5 };
			int expected__ = 1;

			return verifyCase(casenum, expected__,
					new Chopsticks().getmax(length));
		}
		case 1: {
			int[] length = { 1, 2, 3, 2, 1, 2, 3, 2, 1 };
			int expected__ = 4;

			return verifyCase(casenum, expected__,
					new Chopsticks().getmax(length));
		}
		case 2: {
			int[] length = { 1 };
			int expected__ = 0;

			return verifyCase(casenum, expected__,
					new Chopsticks().getmax(length));
		}
		case 3: {
			int[] length = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
			int expected__ = 0;

			return verifyCase(casenum, expected__,
					new Chopsticks().getmax(length));
		}
		case 4: {
			int[] length = { 35, 35, 35, 50, 16, 30, 10, 10, 35, 50, 16, 16,
					16, 30, 50, 30, 16, 35, 50, 30, 10, 50, 50, 16, 16, 10, 35,
					50, 50, 50, 16, 35, 35, 30, 35, 10, 50, 10, 50, 50, 16, 30,
					35, 10, 10, 30, 10, 10, 16, 35 };
			int expected__ = 24;

			return verifyCase(casenum, expected__,
					new Chopsticks().getmax(length));
		}

		// custom cases

		/*
		 * case 5: { int[] length = ; int expected__ = ;
		 *
		 * return verifyCase(casenum, expected__, new
		 * Chopsticks().getmax(length)); }
		 */
		/*
		 * case 6: { int[] length = ; int expected__ = ;
		 *
		 * return verifyCase(casenum, expected__, new
		 * Chopsticks().getmax(length)); }
		 */
		/*
		 * case 7: { int[] length = ; int expected__ = ;
		 *
		 * return verifyCase(casenum, expected__, new
		 * Chopsticks().getmax(length)); }
		 */
		default:
			return -1;
		}
	}