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 26f762c commit 1d08970Copy full SHA for 1d08970
1 file changed
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -239,11 +239,11 @@ PMPolynomialTest >> testPolynomialNumberSubtraction [
239
240
{ #category : #'testing - subtraction' }
241
PMPolynomialTest >> testPolynomialNumberSubtractionInverse [
242
- | polynomial |
243
- polynomial := (PMPolynomial coefficients: #(2 -3 1)) - 2.
244
- self assert: (polynomial at: 0) equals: 0.
245
- self assert: (polynomial at: 1) equals: -3.
246
- self assert: (polynomial at: 2) equals: 1.
+
+ | polynomial expected |
+ polynomial := (PMPolynomial coefficients: #( 2 -3 1 )) - 2.
+ expected := PMPolynomial coefficients: #( 0 -3 1 ).
+ self assert: polynomial equals: expected.
247
self assert: (polynomial at: 3) equals: 0
248
]
249
0 commit comments