Skip to content

Commit 1d08970

Browse files
refactor: replaced equating coefficients with equating the polynomial.
1 parent 26f762c commit 1d08970

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
@@ -239,11 +239,11 @@ PMPolynomialTest >> testPolynomialNumberSubtraction [
239239

240240
{ #category : #'testing - subtraction' }
241241
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.
242+
243+
| polynomial expected |
244+
polynomial := (PMPolynomial coefficients: #( 2 -3 1 )) - 2.
245+
expected := PMPolynomial coefficients: #( 0 -3 1 ).
246+
self assert: polynomial equals: expected.
247247
self assert: (polynomial at: 3) equals: 0
248248
]
249249

0 commit comments

Comments
 (0)