1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
CVDA_TP_Note/test/cvdatpjunit/CVDATPJUnitTest.java

17 lines
529 B
Java
Raw Normal View History

package cvdatpjunit;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Assertions;
class CVDATPJUnitTest {
@Test
void swapTwoLastTest() {
Assertions.assertEquals("BA", CVDATPJUnit.swapTwoLast("AB"));
Assertions.assertEquals("RANI", CVDATPJUnit.swapTwoLast("RAIN"));
Assertions.assertEquals("TENRANI", CVDATPJUnit.swapTwoLast("TENRAIN"));
Assertions.assertEquals("A", CVDATPJUnit.swapTwoLast("A"));
Assertions.assertEquals("", CVDATPJUnit.swapTwoLast(""));
}
}