big-ass tests

This commit is contained in:
maxnes3 2023-03-20 00:05:11 +04:00
parent 309e915e7b
commit 0b8348bdbc

View File

@ -61,25 +61,25 @@ class LabworksApplicationTests {
@Test
void ArrayPlus() {
final String res = calculatorService.Plus("array", "2,2,4", "2").toString();
Assertions.assertEquals("4,4,6", res);
final String res = calculatorService.Plus("array", "2,2", "3,3").toString();
Assertions.assertEquals("[23, 23]", res);
}
@Test
void ArrayMinus() {
final String res = calculatorService.Minus("array", "2,2,4", "2").toString();
Assertions.assertEquals("0,0,2", res);
final String res = calculatorService.Minus("array", "24,23", "4,3").toString();
Assertions.assertEquals("[2, 2]", res);
}
@Test
void ArrayMulti() {
final String res = calculatorService.Multi("array", "2,2,4", "2").toString();
Assertions.assertEquals("4,4,8", res);
final String res = calculatorService.Multi("array", "23,24", "2,2").toString();
Assertions.assertEquals("[2323, 2424]", res);
}
@Test
void ArrayDiv() {
final String res = calculatorService.Div("array", "2,2,4", "2").toString();
Assertions.assertEquals("1,1,2", res);
final String res = calculatorService.Div("array", "23,24", "1,1").toString();
Assertions.assertEquals("[2, 2]", res);
}
}