RegressionTests__ComplexTest.st
author Claus Gittinger <cg@exept.de>
Fri, 17 Feb 2006 12:30:27 +0100
changeset 308 0113f7be0cf9
parent 256 7009adb85fbb
child 566 229e35dc2657
permissions -rw-r--r--
more tests (from squeak)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'exept:regression' }"
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"{ NameSpace: RegressionTests }"
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
TestCase subclass:#ComplexTest
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	instanceVariableNames:''
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	classVariableNames:''
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	poolDictionaries:''
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
	category:'tests-Regression'
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
!ComplexTest methodsFor:'tests'!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    15
testAbs
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    16
    | c |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    17
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    18
    c := (6 - 6 i).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    19
    self assert: c abs  = 72 sqrt.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    20
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    21
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    22
     self new testAbs
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    23
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    24
     self run: #testAbs
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    25
     self debug: #testAbs
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    26
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    27
!
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    29
testAddition
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    30
    | c1 c2 c3 |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    31
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    32
    self shouldnt: [ c1 := Complex real: 1 imaginary: 2 ] raise: Exception.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    33
    self shouldnt: [ c2 := Complex real: 3 imaginary: 4 ] raise: Exception.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    34
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    35
    self should: [ (c1 + c2) = (Complex real: 4 imaginary: 6) ].
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    37
    c3 := (5 - 6 i) + (-5 + 8 i).     "Complex with Complex"
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    38
    self assert: (c3 =  (0 + 2 i)).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    39
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    40
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    41
     self run: #testAddition
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    42
     self new testAddition
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    43
    "
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
testCreation
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    47
    | c |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    48
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    49
    false ifTrue:[
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    50
        "cg: I dont think this has to be known outside complex"
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    51
        "i.e. should it really be allowed to create complex numbers with new ?"
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    52
        self should: [ (c := Complex new) realPart = 0 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    53
        self should: [ c imaginaryPart = 0 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    54
    ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    55
    self should: [ (c := Complex real: 1 imaginary: 2) realPart = 1 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    56
    self should: [ c imaginaryPart = 2 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    57
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    58
    self should: [ (c := Complex real: -1 imaginary: 2) realPart = -1 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    59
    self should: [ c imaginaryPart = 2 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    60
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    61
    self should: [ (c := Complex real: 1 imaginary: -2) realPart = 1 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    62
    self should: [ c imaginaryPart = -2 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    63
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    64
    self should: [ (c := Complex real: -1 imaginary: -2) realPart = -1 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    65
    self should: [ c imaginaryPart = -2 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    66
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    67
    c := (1 % 2).   
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    68
    self assert: (c real = 1).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    69
    self assert: (c imaginary = 2).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    70
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    71
    c := (-1 % 2).   
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    72
    self assert: (c real = -1).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    73
    self assert: (c imaginary = 2).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    74
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    75
    c := (1 % -2).   
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    76
    self assert: (c real = 1).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    77
    self assert: (c imaginary = -2).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    78
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    79
    c := (-1 % -2).   
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    80
    self assert: (c real = -1).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    81
    self assert: (c imaginary = -2).
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    83
    c := (1.0 % 2.0).   
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    84
    self assert: (c real = 1.0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    85
    self assert: (c imaginary = 2.0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    86
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    87
    c := (-1.0 % 2.0).   
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    88
    self assert: (c real = -1.0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    89
    self assert: (c imaginary = 2.0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    90
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    91
    c := (1.0 % -2.0).   
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    92
    self assert: (c real = 1.0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    93
    self assert: (c imaginary = -2.0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    94
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    95
    c := (-1.0 % -2.0).   
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    96
    self assert: (c real = -1.0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    97
    self assert: (c imaginary = -2.0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    98
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
    99
    c := 5 i.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   100
    self assert: (c real = 0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   101
    self assert: (c imaginary = 5).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   102
    
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   103
    c := 6 + 7 i.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   104
    self assert: (c real = 6).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   105
    self assert: ( c imaginary = 7).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   106
    
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   107
    c := 5.6 - 8 i.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   108
    self assert: (c real = 5.6).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   109
    self assert: (c imaginary = -8).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   110
    
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   111
    c := Complex real: 10 imaginary: 5.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   112
    self assert: (c real = 10).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   113
    self assert: (c imaginary = 5).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   114
    
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   115
    c := Complex abs: 5 arg: (Float pi/2).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   116
    self assert: (c real rounded = 0).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   117
    self assert: (c imaginary = 5).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   118
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   119
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   120
     self run: #testCreation
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   121
     self new testCreation
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   122
    "
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
testDivision
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
	| c1 c2 |
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
	self shouldnt: [ c1 := Complex real: 2 imaginary: 2 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
	self shouldnt: [ c2 := Complex real: 3 imaginary: 6 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
	self should: [ (c1 / c1) = (Complex real: 1 imaginary: 0) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
	self should: [ (c1 / c2) = (Complex real: 2/5 imaginary: (-2/15)) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
	self should: [ (c2 / c1) = (Complex real: 9/4 imaginary: 3/4) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
	self should: [ c2 / 3 = (Complex real: 1 imaginary: 2) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
	self should: [ c1 / 2 = (Complex real: 1 imaginary: 1) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
testEquality
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   140
    self should: [ 3 = (Complex real: 3 imaginary: 0) ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   141
    self should: [ (Complex real: 3 imaginary: 0) = 3 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   142
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   143
    self should: [ 3.0 = (Complex real: 3 imaginary: 0) ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   144
    self should: [ (Complex real: 3 imaginary: 0) = 3.0 ].
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   146
    self shouldnt: [ 3 = (Complex real: 3 imaginary: 1) ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   147
    self shouldnt: [ (Complex real: 3 imaginary: 1) = 3 ].
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   149
    self shouldnt: [ 3.0 = (Complex real: 3 imaginary: 1) ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   150
    self shouldnt: [ (Complex real: 3 imaginary: 1) = 3.0 ].
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   152
    self should: [ 3 ~= (Complex real: 3 imaginary: 1) ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   153
    self should: [ (Complex real: 3 imaginary: 1) ~= 3 ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   154
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   155
    self should: [ 3.0 ~= (Complex real: 3 imaginary: 1) ].
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   156
    self should: [ (Complex real: 3 imaginary: 1) ~= 3.0 ].
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   158
    self assert: 0i = 0.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   159
    self assert: (2 - 5i) = ((1 -4 i) + (1 - 1i)).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   160
    self assert: 0i isZero.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   161
    self deny: (1 + 3 i) = 1.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   162
    self deny: (1 + 3 i) = (1 + 2i).
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   164
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   165
     self run: #testEquality
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   166
     self new testEquality
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   167
    "
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
testModulus
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
	| c1 c2 |
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
	"Test case where |a| < |b| in complex number (a + ib)."
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
	self shouldnt: [ c1 := Complex real: 2 imaginary: 3 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
	self should: [ c1 modulus = (3 * ((1 + ((2 / 3) * (2 / 3))) sqrt)) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
	"Test case where |a| >= |b| in complex number (a + ib)."
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
	self shouldnt: [ c2 := Complex real: 4 imaginary: -2 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
	self should: [ c2 modulus = (4 * ((1 + ((-2 / 4) * (-2 / 4))) sqrt)) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
testMultiplication
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
	| c1 c2 |
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
	self shouldnt: [ c1 := Complex real: 1 imaginary: 2 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
	self shouldnt: [ c2 := Complex real: 3 imaginary: 4 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
	self should: [ (c1 * c2) = (Complex real: -5 imaginary: 10) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
	self should: [ (c1 * Complex zero) = Complex zero ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
	self should: [ c1 * 5 = (Complex real: 5 imaginary: 10) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
	self should: [ c1 * 1.1 = (Complex real: 1.1 imaginary: 2.2) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
	self should: [ c1 * (2/3) = (Complex real: 2/3 imaginary: 4/3) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   198
testNegated
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   199
    | c |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   200
    c := (2 + 5 i) .
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   201
    self assert: c negated  = (-2 - 5i).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   202
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   203
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   204
     self run: #testNegated
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   205
     self new testNegated
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   206
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   207
!
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   208
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
testRaisedTo
256
7009adb85fbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 192
diff changeset
   210
        | c |
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
256
7009adb85fbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 192
diff changeset
   212
        self shouldnt: [ c := Complex real: 3 imaginary: 2 ] raise: Exception.
7009adb85fbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 192
diff changeset
   213
        self assert:  ((c raisedTo: 2) = (c * c)).
7009adb85fbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 192
diff changeset
   214
        self assert:  ((c raisedTo: 3) = (c * c * c)).
7009adb85fbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 192
diff changeset
   215
        self assert:  ((c raisedTo: 4) = (c * c * c * c)).
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   218
testReciprocal
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   219
    | c |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   220
    c := (2 + 5 i).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   221
    self assert: c reciprocal  = ((2/29) - (5/29)i).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   222
        
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   223
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   224
     self run: #testReciprocal
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   225
     self new testReciprocal
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   226
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   227
!
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   228
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   229
testReciprocalError
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   230
    | c |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   231
    c := (0 i).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   232
        self should: [c reciprocal] raise: ZeroDivide        
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   233
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   234
     self run: #testReciprocalError
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   235
     self new testReciprocalError
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   236
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   237
!
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   238
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
testSqrt
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
        | c w |
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
        self shouldnt: [ c := Complex real: 0 imaginary: 0 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
        self should: [ c sqrt = 0 ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
        self shouldnt: [ c := Complex real: 9 imaginary: 4 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
        "cg: that cannot be tested easily, due to rounding errors"
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
        "original" false ifTrue:[
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
            self should: [ w := 3 * (((1 + (1 + ((4/9) * (4/9))) sqrt) / 2) sqrt).
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
                            c sqrt = (Complex real: w imaginary: 4 / (2 * w)) ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
        ] ifFalse:[
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
            self should: [ |t1 t2 epsilon|
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
                            w := 3 * (((1 + (1 + ((4/9) * (4/9))) sqrt) / 2) sqrt).
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
                            t1 := c sqrt.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
                            t2 := (Complex real: w imaginary: 4 / (2 * w)).
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
                            epsilon := 0.0000001.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
                            (t1 realPart - t2 realPart) < epsilon
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
                            and:[ (t1 imaginaryPart - t2 imaginaryPart) < epsilon ]
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
                         ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
        ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
        self shouldnt: [ c := Complex imaginary: -2 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
        "self should: [ c sqrt = (Complex real: 1 imaginary: -1) ].  Should be true, but rounding bites us..."
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
        self should: [ (c sqrt realPart - 1) abs < 1.0e-10 ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
        self should: [ (c sqrt imaginaryPart + 1) abs < 1.0e-10 ].
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   267
testSquared
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   268
    | c c2 |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   269
    c := (6 - 6 i).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   270
    c2 := (c squared).
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   271
    self assert: c2 imaginary = -72.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   272
    self assert: c2 real = 0.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   273
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   274
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   275
     self new testSquared
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   276
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   277
     self run: #testSquared
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   278
     self debug: #testSquared
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   279
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   280
!
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   281
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
testSubtraction
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
	| c1 c2 |
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
	self shouldnt: [ c1 := Complex real: 1 imaginary: 2 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
	self shouldnt: [ c2 := Complex real: 3 imaginary: 4 ] raise: Exception.
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
	self should: [ (c1 - c2) = (Complex real: -2 imaginary: -2) ].
308
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   289
!
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   290
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   291
xxtestSecureDivision1
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   292
    | c1 c2 quotient |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   293
    c1 := 2.0e252 + 3.0e70 i.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   294
    c2 := c1.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   295
    quotient := c1 divideSecureBy: c2.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   296
    self assert: (quotient - 1) isZero.    
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   297
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   298
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   299
     self run: #testSecureDivision1
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   300
     self new testSecureDivision1
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   301
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   302
!
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   303
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   304
xxtestSecureDivision2
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   305
    | c1 c2 quotient |
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   306
    c1 := 2.0e252 + 3.0e70 i.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   307
    c2 := c1.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   308
    quotient := c1 divideFastAndSecureBy: c2.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   309
    self assert: (quotient - 1) isZero.
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   310
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   311
    "
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   312
     self run: #testSecureDivision2
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   313
     self new testSecureDivision2
0113f7be0cf9 more tests (from squeak)
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   314
    "
192
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
! !
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
!ComplexTest class methodsFor:'documentation'!
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
version
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
    ^ '$Header$'
403ba5cd66c4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
! !