Skip to content

Commit a2acd31

Browse files
committed
[test] Add test cases for form-dev#258
1 parent 8b945c1 commit a2acd31

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

check/fixes.frm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,22 @@ Symbol x;
18331833
.end
18341834
assert succeeded?
18351835
*--#] Issue222 :
1836+
*--#[ Issue258 :
1837+
* gcd_ gives wrong results
1838+
S s,t,m;
1839+
L test1 = 1/5*s + 1/5*(s+t)*m;
1840+
L test2 = (s+t)*m;
1841+
L result1 = gcd_(test1*replace_(s,t,t,m,m,s),test2*replace_(s,t,t,m,m,s));
1842+
L result2 = gcd_(test1,test2);
1843+
* Previous versions gave
1844+
* result1 = 1 (correct), but had Valgrind errors
1845+
* result2 = m (wrong)
1846+
P;
1847+
.end
1848+
assert succeeded?
1849+
assert result("result1") =~ expr("1")
1850+
assert result("result2") =~ expr("1")
1851+
*--#] Issue258 :
18361852
*--#[ Issue260 :
18371853
* gcd_ doesn't give the correct result
18381854
S x1,...,x5;

0 commit comments

Comments
 (0)