We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bafb63 commit c37b8f9Copy full SHA for c37b8f9
tests/cicd/generate_docstring/test_file.py
@@ -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
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