cram for a/the test

cram for a/the test

To study for a test shortly before it is to happen. You might have gotten a higher grade if you didn't cram for the test at the last minute.
See also: cram, test