Skip to content

Commit 1745cc4

Browse files
committed
Remove duplication I introduced
1 parent 6733ef2 commit 1745cc4

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

src/Math-Tests-Matrix/PMAdditionalTest.class.st

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@ Class {
88
#category : #'Math-Tests-Matrix'
99
}
1010

11-
{ #category : #tests }
12-
PMAdditionalTest >> testMatrixConversionWithBothDims [
13-
| vect result expected |
14-
vect := #(1 0.5 0.2 3 1 -1 7 3 2 12 13 3) asPMVector .
15-
result := vect reshapeWithDimensions: #(6 2).
16-
17-
expected := PMMatrix rows: #(#(1 0.5) #(0.2 3) #(1 -1) #(7 3) #(2 12) #(13 3)).
18-
19-
self assert: result equals: expected.
20-
]
21-
2211
{ #category : #tests }
2312
PMAdditionalTest >> testMatrixInversionSmall [
2413
"it is here since it uses random matrices"

src/Math-Tests-Matrix/PMMatrixTest.class.st

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,14 @@ PMMatrixTest >> testMatrixCloseToPrecision [
385385

386386
{ #category : #tests }
387387
PMMatrixTest >> testMatrixConversionWithBothDims [
388+
388389
| vect result expected |
389-
vect := #(1 0.5 0.2 3 1 -1 7 3 2 12 13 3) asPMVector .
390-
result := vect reshapeWithDimensions: #(6 2).
391-
392-
expected := PMMatrix rows: #(#(1 0.5) #(0.2 3) #(1 -1) #(7 3) #(2 12) #(13 3)).
393-
394-
self assert: result equals: expected.
390+
vect := #( 1 0.5 0.2 3 1 -1 7 3 2 12 13 3 ) asPMVector.
391+
result := vect reshapeWithDimensions: #( 6 2 ).
392+
393+
expected := PMMatrix rows: #( #( 1 0.5 ) #( 0.2 3 ) #( 1 -1 ) #( 7 3 ) #( 2 12 ) #( 13 3 ) ).
394+
395+
self assert: result equals: expected
395396
]
396397

397398
{ #category : #comparing }

0 commit comments

Comments
 (0)