Skip to content

Commit b785715

Browse files
authored
Merge pull request #302 from jecisc/cut-dependency-between-test-matrix-and-complex
Cut dependency between Math-Tests-Matrix and Math-Complex
2 parents a769cf6 + 7149121 commit b785715

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,18 @@ PMComplexNumberTest >> testIsRealOnComplexVector [
458458
self deny: vector isReal
459459
]
460460

461+
{ #category : #tests }
462+
PMComplexNumberTest >> testIsRealOnRealMatrix [
463+
464+
| matrix |
465+
matrix := PMMatrix rows: #(
466+
#( 1 3 0 )
467+
#( 1 2 -4 )
468+
#( -8 5 -1 ) ).
469+
470+
self assert: matrix isReal
471+
]
472+
461473
{ #category : #tests }
462474
PMComplexNumberTest >> testIsRealOnRealVector [
463475

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -252,18 +252,6 @@ PMMatrixTest >> testInverseSingularMatrixError [
252252
raise: PMSingularMatrixError.
253253
]
254254

255-
{ #category : #tests }
256-
PMMatrixTest >> testIsRealOnRealMatrix [
257-
| matrix |
258-
259-
matrix := PMMatrix rows: #(
260-
(1 3 0)
261-
(1 2 -4)
262-
(-8 5 -1)).
263-
264-
self assert: matrix isReal.
265-
]
266-
267255
{ #category : #tests }
268256
PMMatrixTest >> testLUPDecomposition [
269257
"Code Example 8.10"

0 commit comments

Comments
 (0)