We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba7c68 commit 8320ec0Copy full SHA for 8320ec0
1 file changed
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -203,8 +203,9 @@ PMPolynomialTest >> testPolynomialNumberAdditionInverse [
203
{ #category : #'testing - division' }
204
PMPolynomialTest >> testPolynomialNumberDivision [
205
206
- | polynomial expected expectedCoefficients |
207
- polynomial := (PMPolynomial coefficients: #( 2 -3 1 )) / 2.
+ | polynomial expected expectedCoefficients p |
+ p := PMPolynomial coefficients: #( 2 -3 1 ).
208
+ polynomial := p / 2.
209
expectedCoefficients := Array with: 1 with: -3 / 2 with: 1 / 2.
210
expected := PMPolynomial coefficients: expectedCoefficients.
211
self assert: polynomial equals: expected.
0 commit comments