Assessment of the performance of long-range-corrected density functionals for calculating the absorption spectra of silver clusters.