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 6f02880 commit 26f762cCopy full SHA for 26f762c
1 file changed
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -229,11 +229,11 @@ PMPolynomialTest >> testPolynomialNumberMultiplicationInverse [
229
230
{ #category : #'testing - subtraction' }
231
PMPolynomialTest >> testPolynomialNumberSubtraction [
232
- | polynomial |
233
- polynomial := 2 - (PMPolynomial coefficients: #(2 -3 1)).
234
- self assert: (polynomial at: 0) equals: 0.
235
- self assert: (polynomial at: 1) equals: 3.
236
- self assert: (polynomial at: 2) equals: -1.
+
+ | polynomial expected |
+ polynomial := 2 - (PMPolynomial coefficients: #( 2 -3 1 )).
+ expected := PMPolynomial coefficients: #( 0 3 -1 ).
+ self assert: polynomial equals: expected.
237
self assert: (polynomial at: 3) equals: 0
238
]
239
0 commit comments