Skip to content

Commit

Permalink
refactor: renamed Protocols to make similar code even more similar.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Dec 27, 2023
1 parent fa9b49d commit 7e46a25
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Math-Tests-Polynomials/PMPolynomialTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#category : #'Math-Tests-Polynomials'
}

{ #category : #comparing }
{ #category : #'testing - comparing' }
PMPolynomialTest >> testIsZero [
| p1 p2 |
p1 := PMPolynomial coefficients: #(0 0 0 0 0).
Expand All @@ -25,7 +25,7 @@ PMPolynomialTest >> testPolynomialAddition [
self assert: (polynomial at: 4) equals: 0
]

{ #category : #algebra }
{ #category : #'testing - algebra' }
PMPolynomialTest >> testPolynomialDerivative [
"Code example 2.3"

Expand Down Expand Up @@ -63,7 +63,7 @@ PMPolynomialTest >> testPolynomialDivisionBug [
self shouldnt: [ pol1 / pol2 ] raise: Error
]

{ #category : #arithmetic }
{ #category : #'testing - arithmetic' }
PMPolynomialTest >> testPolynomialDoubleDispatch [
| n p |
n := 3.2.
Expand All @@ -80,7 +80,7 @@ PMPolynomialTest >> testPolynomialDoubleDispatch [
self assert: n - p equals: (p - n) negated
]

{ #category : #algebra }
{ #category : #'testing - algebra' }
PMPolynomialTest >> testPolynomialEvaluation [
"Code example 2.2"

Expand All @@ -89,7 +89,7 @@ PMPolynomialTest >> testPolynomialEvaluation [
self assert: 0 equals: (polynomial value: 1)
]

{ #category : #comparing }
{ #category : #'testing - comparing' }
PMPolynomialTest >> testPolynomialHash [
"polynomial hash is hash of coefficient array"

Expand All @@ -105,7 +105,7 @@ PMPolynomialTest >> testPolynomialHash [
self assert: p3 hash equals: p2 hash
]

{ #category : #algebra }
{ #category : #'testing - algebra' }
PMPolynomialTest >> testPolynomialIntegral [
"Code example 2.3"

Expand All @@ -119,7 +119,7 @@ PMPolynomialTest >> testPolynomialIntegral [
self assert: (polynomial at: 5) equals: 0
]

{ #category : #algebra }
{ #category : #'testing - algebra' }
PMPolynomialTest >> testPolynomialIntegralWithConstant [
"Code example 2.3"

Expand Down

0 comments on commit 7e46a25

Please sign in to comment.