File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -125,17 +125,19 @@ object ReadingWritingTests extends TestSuite {
125125 }
126126 }
127127 test(" outputStreamWithPerms" ) {
128- test - prep { wd => if (! scala.util.Properties .isWin) {
129- val out = os.write.outputStream(wd / " New File.txt" , perms = os.PermSet (420 ))
130- out.write('H' )
131- out.write('e' )
132- out.write('l' )
133- out.write('l' )
134- out.write('o' )
135- out.close()
128+ test - prep { wd =>
129+ if (! scala.util.Properties .isWin) {
130+ val out = os.write.outputStream(wd / " New File.txt" , perms = os.PermSet (420 ))
131+ out.write('H' )
132+ out.write('e' )
133+ out.write('l' )
134+ out.write('l' )
135+ out.write('o' )
136+ out.close()
136137
137- os.read(wd / " New File.txt" ) ==> " Hello"
138- }}
138+ os.read(wd / " New File.txt" ) ==> " Hello"
139+ }
140+ }
139141 }
140142 }
141143 test(" truncate" ) {
You can’t perform that action at this time.
0 commit comments