Skip to content

Commit c37b8f9

Browse files
author
patched.codes[bot]
committed
Patched tests/cicd/generate_docstring/test_file.py
1 parent 5bafb63 commit c37b8f9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import static org.junit.jupiter.api.Assertions.assertEquals;
2+
import org.junit.jupiter.api.Test;
3+
import java.util.Comparator;
4+
import java.util.function.Function;
5+
6+
public class TestTest {
7+
@Test
8+
public void testAPlusBWithIntegers() {
9+
assertEquals(5, Test.a_plus_b(2, 3));
10+
assertEquals(-1, Test.a_plus_b(-2, 1));
11+
}
12+
13+
@Test
14+
public void testAPlusBWithKeymap() {
15+
Function<Integer, Integer> keymap = Function.identity();
16+
17+
assertEquals(-1, Test.a_plus_b(keymap, 1, 2));
18+
assertEquals(0, Test.a_plus_b(keymap, 2, 2));
19+
assertEquals(1, Test.a_plus_b(keymap, 3, 2));
20+
}
21+
}

0 commit comments

Comments
 (0)