Before cataract surgery, a doctor will perform some diagnostic tests as a part of a comprehensive eye exam. This may include a visual acuity test, slit lamp exam, and pupillary response test.