We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea2e8f2 commit 03e547eCopy full SHA for 03e547e
sources/net.sf.j2s.core/test/src/test/Test_Ints.java
@@ -3,16 +3,23 @@
3
public class Test_Ints {
4
5
public Test_Ints(float... floats){
6
- System.out.println("Test_int(float...) - FAILED");
+ System.out.println("Test_int(float...) - " + (floats[0] != (int) floats[0]));
7
};
8
9
public Test_Ints(int... ints){
10
- System.out.println("Test_int(int...) - PASSED");
+ System.out.println("Test_int(int...) - " + (ints.length == 0 || ints[0] == 3));
11
12
13
public static void main(String[] args) {
14
new Test_Ints();
15
new Test_Ints(3,5,6);
16
new Test_Ints(3.5f,5.5f,6.5f);
17
+ System.out.println(getIntFromChar('c') == 99);
18
+ }
19
+
20
+ private static int getIntFromChar(char c) {
21
+ return c;
22
23
+ FAILS
24
}
25
0 commit comments