Lines Matching refs:test

25  * @test
36 test(0, 0B0);
37 test(1, 0B1);
38 test(2, 0B10);
39 test(3, 0B11);
41 test(0, 0b0);
42 test(1, 0b1);
43 test(2, 0b10);
44 test(3, 0b11);
46 test(-0, -0b0);
47 test(-1, -0b1);
48 test(-2, -0b10);
49 test(-3, -0b11);
51 test(-1, 0b11111111111111111111111111111111);
52 test(-2, 0b11111111111111111111111111111110);
53 test(-3, 0b11111111111111111111111111111101);
55 test( 1, -0b11111111111111111111111111111111);
56 test( 2, -0b11111111111111111111111111111110);
57 test( 3, -0b11111111111111111111111111111101);
59 test(0, 0b00);
60 test(1, 0b001);
61 test(2, 0b00010);
62 test(3, 0b000011);
65 test( 0x10, 0b10000);
66 test( 0x100, 0b100000000);
67 test( 0x10000, 0b10000000000000000);
68 test(0x80000000, 0b10000000000000000000000000000000);
69 test(0xffffffff, 0b11111111111111111111111111111111);
71 test(0L, 0b0L);
72 test(1L, 0b1L);
73 test(2L, 0b10L);
74 test(3L, 0b11L);
76 test(0, 0b00L);
77 test(1, 0b001L);
78 test(2, 0b00010L);
79 test(3, 0b000011L);
82 test( 0x10L, 0b10000L);
83 test( 0x100L, 0b100000000L);
84 test( 0x10000L, 0b10000000000000000L);
85 test( 0x80000000L, 0b10000000000000000000000000000000L);
86 test( 0xffffffffL, 0b11111111111111111111111111111111L);
87 test(0x8000000000000000L, 0b1000000000000000000000000000000000000000000000000000000000000000L);
88 test(0xffffffffffffffffL, 0b1111111111111111111111111111111111111111111111111111111111111111L);
90 test(0l, 0b0l);
91 test(1l, 0b1l);
92 test(2l, 0b10l);
93 test(3l, 0b11l);
95 test(0, 0b00l);
96 test(1, 0b001l);
97 test(2, 0b00010l);
98 test(3, 0b000011l);
101 test( 0x10l, 0b10000l);
102 test( 0x100l, 0b100000000l);
103 test( 0x10000l, 0b10000000000000000l);
104 test( 0x80000000l, 0b10000000000000000000000000000000l);
105 test( 0xffffffffl, 0b11111111111111111111111111111111l);
106 test(0x8000000000000000l, 0b1000000000000000000000000000000000000000000000000000000000000000l);
107 test(0xffffffffffffffffl, 0b1111111111111111111111111111111111111111111111111111111111111111l);
113 void test(int expect, int found) {
116 error("test " + count + "\nexpected: 0x" + Integer.toHexString(expect) + "\n found: 0x" + Integer.toHexString(found));
119 void test(long expect, long found) {
122 error("test " + count + "\nexpected: 0x" + Long.toHexString(expect) + "\n found: 0x" + Long.toHexString(found));