@@ -21,7 +21,7 @@ public void testCRTSimpleCase() {
21
21
public void testCRTLargeModuli () {
22
22
List <Integer > remainders = Arrays .asList (1 , 2 , 3 );
23
23
List <Integer > moduli = Arrays .asList (5 , 7 , 9 );
24
- int expected = 131 ;
24
+ int expected = 156 ;
25
25
int result = ChineseRemainderTheorem .solveCRT (remainders , moduli );
26
26
assertEquals (expected , result );
27
27
}
@@ -39,7 +39,7 @@ public void testCRTWithSingleCongruence() {
39
39
public void testCRTWithMultipleSolutions () {
40
40
List <Integer > remainders = Arrays .asList (0 , 3 );
41
41
List <Integer > moduli = Arrays .asList (4 , 5 );
42
- int expected = 15 ;
42
+ int expected = 8 ;
43
43
int result = ChineseRemainderTheorem .solveCRT (remainders , moduli );
44
44
assertEquals (expected , result );
45
45
}
@@ -48,7 +48,7 @@ public void testCRTWithMultipleSolutions() {
48
48
public void testCRTLargeNumbers () {
49
49
List <Integer > remainders = Arrays .asList (0 , 4 , 6 );
50
50
List <Integer > moduli = Arrays .asList (11 , 13 , 17 );
51
- int expected = 782 ;
51
+ int expected = 550 ;
52
52
int result = ChineseRemainderTheorem .solveCRT (remainders , moduli );
53
53
assertEquals (expected , result );
54
54
}
0 commit comments