private static void test_clear(TestCase t) {

		// Print the name of the function to the log
		pw.printf("\nTesting %s:\n", t.name);

		// Run each test for this test case
		int score = 0;
		for (int i = 0; i < t.tests.length; i += 3) {
			int bits = (Integer) t.tests[i];
			int exp = (Integer) t.tests[i + 1];
			int arg1 = (Integer) t.tests[i + 2];
			try {
				field.setInt(vec, bits);
			} catch (IllegalAccessException e) {
				e.printStackTrace();
			}
			vec.clear(arg1);
			int res = vec.getBits();
			boolean cor = exp == res;
			if (cor) {
				++score;
			}
			pw.printf(
					"%s(%2d): Bits: %8X Expected: %8X Result: %8X Correct: %5b\n",
					t.name, arg1, bits, exp, res, cor);
			pw.flush();
		}

		// Set the score for this test case
		t.score = (double) score / (t.tests.length / 3);
	}