1
0
Fork 0

Add NullPointerException test on swapTwoLastTest

This commit is contained in:
Ethanell 2020-04-24 10:57:15 +02:00
parent 3be226d5c0
commit f873307924

View file

@ -19,5 +19,6 @@ class CVDATPJUnitTest {
Assertions.assertEquals("TENRANI", CVDATPJUnit.swapTwoLast("TENRAIN")); Assertions.assertEquals("TENRANI", CVDATPJUnit.swapTwoLast("TENRAIN"));
Assertions.assertEquals("A", CVDATPJUnit.swapTwoLast("A")); Assertions.assertEquals("A", CVDATPJUnit.swapTwoLast("A"));
Assertions.assertEquals("", CVDATPJUnit.swapTwoLast("")); Assertions.assertEquals("", CVDATPJUnit.swapTwoLast(""));
Assertions.assertNull(CVDATPJUnit.swapTwoLast(null));
} }
} }