Skip to content

Commit

Permalink
Refatora testes
Browse files Browse the repository at this point in the history
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
  • Loading branch information
manoelcampos committed May 24, 2024
1 parent d4f74d2 commit fcc61d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/example/PoligonosAppTest.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.example;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import java.util.List;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;

/**
* Testes unitários para a classe {@link PoligonosApp},
Expand All @@ -22,7 +22,7 @@ void perimetros() {
final List<Double> expected = List.of(400.0, 500.0, 323.0, 341.0, 382.0);
final List<Double> perimetros = app.perimetros();
for (int i = 0; i < perimetros.size(); i++) {
Assertions.assertEquals(expected.get(i), perimetros.get(i), delta, "Perímetro do polígono %d incorreto".formatted(i));
assertEquals(expected.get(i), perimetros.get(i), delta, "Perímetro do polígono %d incorreto".formatted(i));
}
}

Expand Down

0 comments on commit fcc61d2

Please sign in to comment.