File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
src/test/java/com/fasterxml/jackson/core/sym Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
package com .fasterxml .jackson .core .sym ;
2
2
3
- import org .junit .Ignore ;
4
- import org .junit .Test ;
3
+ import org .junit .jupiter .api .Test ;
5
4
6
- import static org .junit .Assert .assertEquals ;
5
+ import static org .junit .Assert .fail ;
7
6
8
- public class ByteQuadsCanonicalizerTest {
7
+ public class ByteQuadsCanonicalizerTest
8
+ {
9
9
@ Test
10
- @ Ignore
11
- public void testMultiplyByFourFifths () {
12
- for (long i = 0 ; i <= Integer .MAX_VALUE ; i ++) {
13
- int number = (int ) i ;
14
- int expected = (int ) (number * 0.80 );
15
- int actual = ByteQuadsCanonicalizer .multiplyByFourFifths (number );
16
- assertEquals ("input=" + number , expected , actual );
10
+ public void testMultiplyByFourFifths ()
11
+ {
12
+ int i = 0 ;
13
+ for (; i >= 0 ; i += 7 ) {
14
+ int expected = (int ) (i * 0.80 );
15
+ int actual = ByteQuadsCanonicalizer .multiplyByFourFifths (i );
16
+ if (expected != actual ) {
17
+ fail ("Input for 80% of " +i +" differs: expected=" +expected +", actual=" +actual );
18
+ }
17
19
}
18
20
}
19
21
}
You can’t perform that action at this time.
0 commit comments