Skip to content

Commit

Permalink
fix: corrected the comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Dec 24, 2023
1 parent 371e9c8 commit 22e219c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Math-Tests-Polynomials/PMPolynomialTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,14 @@ PMPolynomialTest >> testPolynomialRoots [

{ #category : #'iterative algorithms' }
PMPolynomialTest >> testPolynomialRootsForConstant [

| polynomial |
"Here, compute the roots of the quadratic (2x + 1)"
polynomial := PMPolynomial coefficients: #(1).
self should: [ polynomial roots ] raise: Error description: 'Function''s derivative seems to be zero everywhere'.

"Here, compute the roots of the constant C = 1"
polynomial := PMPolynomial coefficients: #( 1 ).
self
should: [ polynomial roots ]
raise: Error
description: 'Function''s derivative seems to be zero everywhere'
]

{ #category : #'iterative algorithms' }
Expand Down

0 comments on commit 22e219c

Please sign in to comment.