Skip to content

Commit fe852f5

Browse files
hansonrhansonr
authored andcommitted
tests for 0b00
1 parent 773073d commit fe852f5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

sources/net.sf.j2s.java.core/src/test/Test_Ints.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package test;
22

3+
import java.util.Map;
4+
35
public class Test_Ints extends Test_ {
46

57
public Test_Ints(float... floats){
@@ -12,10 +14,28 @@ public Test_Ints(int... ints){
1214
assert(ints.length == 0 || ints[0] == 3);
1315
};
1416

17+
private static void test(int i, Integer j, Character c, Integer k, Double d, Float f, Long l, Short s) {
18+
19+
}
20+
21+
private static int CLEAR_BITS = 0b10;
22+
23+
Map<String, Integer> map;
24+
25+
Map<String, Integer> build() {
26+
map.putIfAbsent("test", 0x00);
27+
return map;
28+
}
29+
1530
private final static int USER = -13;
1631
private final static int ALT = 16;
1732

1833
public static void main(String[] args) {
34+
int i0b = new Integer(0b010101).intValue();
35+
assert(i0b == 21);
36+
new Test_Ints(0b00,0b01);
37+
test(0b01, 0b0101, 'c', 0x0f,0.5D, 0.2F, 33L, (short) 33);
38+
test(0b01, new Integer(0b0101), 'b', 0x0f,0.5D, 0.2F, 33L, (short) 33);
1939
int i3 = new Integer("3");
2040
int it = +USER;
2141
new Test_Ints();

0 commit comments

Comments
 (0)