Skip to content

Commit 4f72330

Browse files
Clarified the names of the messages.
1 parent 933f53c commit 4f72330

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/Math-Tests-Complex/PMComplexTest.class.st

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ PMComplexTest >> testAdaptToCollectionAndSend [
4646
]
4747

4848
{ #category : #'testing - arithmetic' }
49-
PMComplexTest >> testAddPolynomial [
49+
PMComplexTest >> testAddingToAPolynomial [
5050
| c poly |
5151
c := 6 - 6 i.
5252
poly := PMPolynomial coefficients: #(1 1 1).
@@ -55,7 +55,7 @@ PMComplexTest >> testAddPolynomial [
5555
]
5656

5757
{ #category : #'testing - arithmetic' }
58-
PMComplexTest >> testAdding [
58+
PMComplexTest >> testAddingTwoComplexNumbers [
5959
"self run: #testAdding"
6060

6161
| c |
@@ -309,15 +309,7 @@ PMComplexTest >> testCreation [
309309
]
310310

311311
{ #category : #'testing - arithmetic' }
312-
PMComplexTest >> testDividingPolynomial [
313-
| c poly |
314-
c := 4 + 4 i.
315-
poly := PMPolynomial coefficients: #(1 0 1).
316-
self assert: poly / c equals: 1 / c * poly
317-
]
318-
319-
{ #category : #'testing - arithmetic' }
320-
PMComplexTest >> testDivision1 [
312+
PMComplexTest >> testDividingALargeComplexNumbersByItself [
321313
"self run: #testDivision1"
322314
"self debug: #testDivision1"
323315

@@ -334,6 +326,14 @@ PMComplexTest >> testDivision1 [
334326

335327
]
336328

329+
{ #category : #'testing - arithmetic' }
330+
PMComplexTest >> testDividingPolynomialByAComplexNumber [
331+
| c poly |
332+
c := 4 + 4 i.
333+
poly := PMPolynomial coefficients: #(1 0 1).
334+
self assert: poly / c equals: 1 / c * poly
335+
]
336+
337337
{ #category : #'testing - equality' }
338338
PMComplexTest >> testEqualsIsReflexive [
339339
| z |
@@ -453,6 +453,15 @@ PMComplexTest >> testMultiplyByI [
453453
self assert: c * 1 i equals: c i
454454
]
455455

456+
{ #category : #'testing - arithmetic' }
457+
PMComplexTest >> testMultiplyingByPolynomials [
458+
| c poly |
459+
c := 1 + 1 i.
460+
poly := PMPolynomial coefficients: #(1).
461+
self assert: (c * poly at: 0) equals: c.
462+
self assert: (poly * c at: 0) equals: c
463+
]
464+
456465
{ #category : #'testing - arithmetic' }
457466
PMComplexTest >> testNegated [
458467
"self run: #testNegated"
@@ -707,7 +716,7 @@ PMComplexTest >> testSquared [
707716
]
708717

709718
{ #category : #'testing - arithmetic' }
710-
PMComplexTest >> testSubtractToPolynomial [
719+
PMComplexTest >> testSubtractingPolynomials [
711720
| c poly |
712721
poly := PMPolynomial coefficients: #(1 2 3).
713722
c := 1 + 3 i.
@@ -739,15 +748,6 @@ PMComplexTest >> testTanh [
739748
self assert: (c2 imaginary closeTo: c tanh imaginary).
740749
]
741750

742-
{ #category : #'testing - arithmetic' }
743-
PMComplexTest >> testTimesPolynomial [
744-
| c poly |
745-
c := 1 + 1 i.
746-
poly := PMPolynomial coefficients: #(1).
747-
self assert: (c * poly at: 0) equals: c.
748-
self assert: (poly * c at: 0) equals: c
749-
]
750-
751751
{ #category : #'testing - equality' }
752752
PMComplexTest >> testTwoComplexNumbersWithDifferentImaginaryPartsAreNotEqual [
753753
| z w |

0 commit comments

Comments
 (0)