[poincare] Integer: fix and add tests on Integer::Subtraction

This commit is contained in:
Émilie Feral
2018-08-13 17:48:57 +02:00
parent 47348b6d65
commit 2bf0eefd92
2 changed files with 22 additions and 20 deletions

View File

@@ -581,7 +581,7 @@ Integer Integer::addition(const Integer & a, const Integer & b, bool inverseBNeg
us.setNegative(a.sign() == ExpressionNode::Sign::Negative);
return us;
} else {
Integer us = IntegerNode::usum(a.node(), b.node(), true);
Integer us = IntegerNode::usum(b.node(), a.node(), true);
us.setNegative(bNegative);
return us;
}