big-ass tests
This commit is contained in:
parent
309e915e7b
commit
0b8348bdbc
@ -61,25 +61,25 @@ class LabworksApplicationTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void ArrayPlus() {
|
void ArrayPlus() {
|
||||||
final String res = calculatorService.Plus("array", "2,2,4", "2").toString();
|
final String res = calculatorService.Plus("array", "2,2", "3,3").toString();
|
||||||
Assertions.assertEquals("4,4,6", res);
|
Assertions.assertEquals("[23, 23]", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void ArrayMinus() {
|
void ArrayMinus() {
|
||||||
final String res = calculatorService.Minus("array", "2,2,4", "2").toString();
|
final String res = calculatorService.Minus("array", "24,23", "4,3").toString();
|
||||||
Assertions.assertEquals("0,0,2", res);
|
Assertions.assertEquals("[2, 2]", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void ArrayMulti() {
|
void ArrayMulti() {
|
||||||
final String res = calculatorService.Multi("array", "2,2,4", "2").toString();
|
final String res = calculatorService.Multi("array", "23,24", "2,2").toString();
|
||||||
Assertions.assertEquals("4,4,8", res);
|
Assertions.assertEquals("[2323, 2424]", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void ArrayDiv() {
|
void ArrayDiv() {
|
||||||
final String res = calculatorService.Div("array", "2,2,4", "2").toString();
|
final String res = calculatorService.Div("array", "23,24", "1,1").toString();
|
||||||
Assertions.assertEquals("1,1,2", res);
|
Assertions.assertEquals("[2, 2]", res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user