Skip to content

Commit e4e1c95

Browse files
committed
Format
1 parent 3cf52c1 commit e4e1c95

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

os/test/src/ReadingWritingTests.scala

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff 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") {

0 commit comments

Comments
 (0)