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 aaefdcf commit 4ddc12bCopy full SHA for 4ddc12b
1 file changed
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -16,9 +16,10 @@ PMPolynomialTest >> testIsZero [
16
{ #category : #'testing - addition' }
17
PMPolynomialTest >> testPolynomialAddition [
18
19
- | polynomial expected |
20
- polynomial := (PMPolynomial coefficients: #( 2 -3 1 ))
21
- + (PMPolynomial coefficients: #( -3 7 2 1 )).
+ | polynomial expected p q |
+ p := PMPolynomial coefficients: #( 2 -3 1 ).
+ q := PMPolynomial coefficients: #( -3 7 2 1 ).
22
+ polynomial := p + q.
23
expected := PMPolynomial coefficients: #( -1 4 3 1 ).
24
self assert: polynomial equals: expected.
25
self assert: (polynomial at: 4) equals: 0
0 commit comments