@Test
public void ajustaLimitesCorretamente() {

    RegraParaTeste r = new RegraParaTeste("v", "d", 1, 0);
    assertEquals(1f, r.ajustaLimites(1.001f), 0.0001f);
    assertEquals(0f, r.ajustaLimites(-0.0001f), 0.0001f);
    assertEquals(0.5f, r.ajustaLimites(0.5f), 0.0001f);
}