Skip to content

Commit f7a11fa

Browse files
committed
update tests.c
1 parent c7fe891 commit f7a11fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/tests.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@
1414
MU_TEST(test_extended_gcd_int)
1515
{
1616
integer a, b, r, u, v;
17+
1718
a = 240; b = 46;
1819
r = extended_gcd_int(a, b, &u, &v);
1920
mu_check(r == 2);
2021
mu_check(u == -9);
2122
mu_check(v = 47);
23+
24+
a = 251; b = 207;
25+
r = extended_gcd_int(a, b, &u, &v);
26+
mu_check(r == 1);
27+
mu_check(u == 80);
28+
mu_check(v = -97);
2229
}
2330

2431
/* Modular arithmetic for integers */

0 commit comments

Comments
 (0)