Skip to content

Commit

Permalink
refactor: replaced equating constants with equating polynomials.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Dec 27, 2023
1 parent 6f02880 commit 26f762c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Math-Tests-Polynomials/PMPolynomialTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ PMPolynomialTest >> testPolynomialNumberMultiplicationInverse [

{ #category : #'testing - subtraction' }
PMPolynomialTest >> testPolynomialNumberSubtraction [
| polynomial |
polynomial := 2 - (PMPolynomial coefficients: #(2 -3 1)).
self assert: (polynomial at: 0) equals: 0.
self assert: (polynomial at: 1) equals: 3.
self assert: (polynomial at: 2) equals: -1.

| polynomial expected |
polynomial := 2 - (PMPolynomial coefficients: #( 2 -3 1 )).
expected := PMPolynomial coefficients: #( 0 3 -1 ).
self assert: polynomial equals: expected.
self assert: (polynomial at: 3) equals: 0
]

Expand Down

0 comments on commit 26f762c

Please sign in to comment.