author | Martin Kobetic |
Sun, 17 Nov 2013 00:21:39 -0500 | |
changeset 141 | 263190106319 |
parent 112 | b6b3d8435bb7 |
permissions | -rw-r--r-- |
9 | 1 |
"{ Package: 'stx:goodies/xtreams/terminals/tests' }" |
2 |
||
3 |
"{ NameSpace: Xtreams }" |
|
4 |
||
5 |
FiniteReadingWritingTests subclass:#FileReadingWritingTest |
|
6 |
instanceVariableNames:'file' |
|
7 |
classVariableNames:'' |
|
26
d740fff525d4
added XtreamsPool to fix DefaultBufferSize; set proper category names
mkobetic
parents:
9
diff
changeset
|
8 |
poolDictionaries:'XtreamsPool' |
d740fff525d4
added XtreamsPool to fix DefaultBufferSize; set proper category names
mkobetic
parents:
9
diff
changeset
|
9 |
category:'Xtreams-Terminals-Tests' |
9 | 10 |
! |
11 |
||
12 |
||
13 |
!FileReadingWritingTest methodsFor:'initialize-release'! |
|
14 |
||
15 |
setUp |
|
16 |
||
17 |
file := '<1s>-<2s>' expandMacrosWith: self class name with: testSelector. |
|
18 |
file := |
|
19 |
(OSHandle currentOS = #unix and: [ '/dev/shm' asFilename exists ]) |
|
20 |
ifTrue: [ ('/dev/shm/', file) asFilename ] |
|
21 |
ifFalse: [ file asFilename ]. |
|
22 |
output := file writing. |
|
23 |
input := file reading. |
|
24 |
! |
|
25 |
||
26 |
tearDown |
|
27 |
||
28 |
input close. |
|
29 |
output close. |
|
30 |
file delete |
|
31 |
! ! |
|
32 |
||
33 |
!FileReadingWritingTest methodsFor:'tests - core'! |
|
34 |
||
35 |
testInsert |
|
36 |
"Do nothing, since files are not expected to implement insert:* " |
|
37 |
! ! |
|
38 |
||
39 |
!FileReadingWritingTest class methodsFor:'documentation'! |
|
40 |
||
112 | 41 |
version_HG |
42 |
||
43 |
^ '$Changeset: <not expanded> $' |
|
44 |
! |
|
45 |
||
9 | 46 |
version_SVN |
47 |
^ '$Id$' |
|
48 |
! ! |
|
112 | 49 |