2215
|
1 |
"{ Package: 'stx:goodies/regression' }"
|
|
2 |
|
|
3 |
"{ NameSpace: RegressionTests }"
|
|
4 |
|
|
5 |
TestCase subclass:#ValueHolderTests
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'* uncategorized *'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!ValueHolderTests methodsFor:'tests'!
|
|
14 |
|
|
15 |
test01_BlockValue
|
|
16 |
|h1 h2|
|
|
17 |
|
|
18 |
h1 := false asValue.
|
|
19 |
h2 := BlockValue forLogicalNot:(h1).
|
|
20 |
self assert:(h2 value == true).
|
|
21 |
|
|
22 |
h1 value:true.
|
|
23 |
self assert:(h2 value == false).
|
|
24 |
|
|
25 |
"Created: / 01-05-2019 / 22:46:40 / Claus Gittinger"
|
|
26 |
! !
|
|
27 |
|
|
28 |
!ValueHolderTests class methodsFor:'documentation'!
|
|
29 |
|
|
30 |
version_CVS
|
|
31 |
^ '$Header$'
|
|
32 |
! !
|
|
33 |
|