class Solution { public int similarPairs(String[] words) { return 4; } }
- class Solution {
- public int similarPairs(String[] words) {
return 1;- return 4;
- }
- }
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; // TODO: Replace examples and use TDD by writing your own tests class SolutionTest { @Test void testSomething() { Solution aaa = new Solution(); String[] cars = {"Volvo", "BMWn", "Ford", "Mazda"}; assertEquals("actual", "actual"); assertEquals(aaa.similarPairs(cars), 1); } }
- import org.junit.jupiter.api.Test;
- import static org.junit.jupiter.api.Assertions.assertEquals;
- // TODO: Replace examples and use TDD by writing your own tests
- class SolutionTest {
- @Test
- void testSomething() {
- Solution aaa = new Solution();
String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};- String[] cars = {"Volvo", "BMWn", "Ford", "Mazda"};
- assertEquals("actual", "actual");
- assertEquals(aaa.similarPairs(cars), 1);
- }
- }