private static void test_pack(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 += 5) {
			int exp = (Integer) t.tests[i];
			int arg1 = (Integer) t.tests[i + 1];
			int arg2 = (Integer) t.tests[i + 2];
			int arg3 = (Integer) t.tests[i + 3];
			int arg4 = (Integer) t.tests[i + 4];
			int res = HW2Operations.pack(arg1, arg2, arg3, arg4);
			boolean cor = exp == res;
			if (cor) {
				++score;
			}
			pw.printf(
					"%s(%1X, %1X, %1X, %1X): Expected: %4X Result: %4X Correct: %5b\n",
					t.name, arg1, arg2, arg3, arg4, exp, res, cor);
			pw.flush();
		}

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