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 4b0e6ce commit c56bdc1Copy full SHA for c56bdc1
1 file changed
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -161,11 +161,11 @@ PMPolynomialTest >> testPolynomialMultiplicationIsCommutative [
161
162
{ #category : #'testing - addition' }
163
PMPolynomialTest >> testPolynomialNumberAddition [
164
- | polynomial |
165
- polynomial := 2 + (PMPolynomial coefficients: #(2 -3 1)).
166
- self assert: (polynomial at: 0) equals: 4.
167
- self assert: (polynomial at: 1) equals: -3.
168
- self assert: (polynomial at: 2) equals: 1.
+
+ | polynomial expected |
+ polynomial := 2 + (PMPolynomial coefficients: #( 2 -3 1 )).
+ expected := PMPolynomial coefficients: #( 4 -3 1 ).
+ self assert: polynomial equals: expected.
169
self assert: (polynomial at: 3) equals: 0
170
]
171
0 commit comments