A class of rank-based tests is proposed for the two-sample problem with doubly-truncated data. We consider both nonparametric and semiparametric approaches, where the truncation distribution is parameterized, while the lifetime distribution is left unspecified. The asymptotic distribution theory of the test is presented. The small-sample performance of the test is investigated under a variety of situations by means of Monte Carlo simulations. The proposed tests are illustrated using the CDC AIDS Blood Transfusion Data. ? 2012 Sociedad de Estad?stica e Investigaci?n Operativa.