Browse Source

test: added rightPrefix test

remotes/origin/fdai7780
Tobias Herbert 11 months ago
parent
commit
067b7b4b83
  1. 17
      src/test/java/org/example/AdministrationTest.java

17
src/test/java/org/example/AdministrationTest.java

@ -43,4 +43,21 @@ class AdministrationTest {
}
@Test
void rightPrefix() {
Administration administration = new Administration();
String full01 = "S1002";
String full02 = "s100Z";
String full03 = "X1004";
boolean test01 = administration.rightPrefix(full01, 1);
boolean test02 = administration.rightPrefix(full02, 1);
boolean test03 = administration.rightPrefix(full03, 3);
assertEquals(true, test01);
assertEquals(false, test02);
assertEquals(false, test03);
}
}
Loading…
Cancel
Save