1978
|
1 |
"{ Package: 'stx:goodies/regression' }"
|
|
2 |
|
|
3 |
"{ NameSpace: RegressionTests }"
|
|
4 |
|
|
5 |
TestCase subclass:#IndentStreamTest
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Kiwi-Tests'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!IndentStreamTest methodsFor:'as yet unclassified'!
|
|
14 |
|
|
15 |
testConstructors
|
|
16 |
|
|
17 |
self assert:(IndentStream with: 'xxx') indentLevel = 0.
|
|
18 |
self assert:(IndentStream on: 'xxx') indentLevel = 0.
|
|
19 |
|
|
20 |
"Modified: / 01-07-2018 / 10:12:07 / Claus Gittinger"
|
|
21 |
!
|
|
22 |
|
|
23 |
testIndent
|
|
24 |
|
|
25 |
| stream |
|
|
26 |
stream := IndentStream on: 'xxx'.
|
|
27 |
stream indent; indent.
|
|
28 |
self assert:(stream indentLevel = 2).
|
|
29 |
|
|
30 |
"Modified: / 01-07-2018 / 10:12:22 / Claus Gittinger"
|
|
31 |
!
|
|
32 |
|
|
33 |
testIndentBack
|
|
34 |
|
|
35 |
| stream |
|
|
36 |
stream := IndentStream on: 'xxx'.
|
|
37 |
stream indent; indent.
|
|
38 |
stream indentBack.
|
|
39 |
self assert:stream indentLevel = 1.
|
|
40 |
|
|
41 |
"Modified: / 01-07-2018 / 10:12:35 / Claus Gittinger"
|
|
42 |
! !
|
|
43 |
|
|
44 |
!IndentStreamTest class methodsFor:'documentation'!
|
|
45 |
|
|
46 |
version
|
|
47 |
^ '$Header$'
|
|
48 |
!
|
|
49 |
|
|
50 |
version_CVS
|
|
51 |
^ '$Header$'
|
|
52 |
! !
|
|
53 |
|