Skip to content

Commit 26f762c

Browse files
refactor: replaced equating constants with equating polynomials.
1 parent 6f02880 commit 26f762c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Math-Tests-Polynomials/PMPolynomialTest.class.st

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ PMPolynomialTest >> testPolynomialNumberMultiplicationInverse [
229229

230230
{ #category : #'testing - subtraction' }
231231
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.
232+
233+
| polynomial expected |
234+
polynomial := 2 - (PMPolynomial coefficients: #( 2 -3 1 )).
235+
expected := PMPolynomial coefficients: #( 0 3 -1 ).
236+
self assert: polynomial equals: expected.
237237
self assert: (polynomial at: 3) equals: 0
238238
]
239239

0 commit comments

Comments
 (0)