nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gamnit: CheckerTexture with custom size and move up implementation
[nit.git]
/
tests
/
test_fdstream.nit
diff --git
a/tests/test_fdstream.nit
b/tests/test_fdstream.nit
index
c1e3e84
..
0754f10
100644
(file)
--- a/
tests/test_fdstream.nit
+++ b/
tests/test_fdstream.nit
@@
-14,15
+14,16
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-import stream
+import file
-var fd_in = new FDIStream(0)
-var fd_out = new FDOStream(1)
-var fd_err = new FDOStream(2)
+var fd_in = new FileReader.from_fd(0)
+var fd_out = new FileWriter.from_fd(1)
+var fd_err = new FileWriter.from_fd(2)
fd_out.write("Hello\n")
var s = fd_in.read_line
fd_out.write(s)
fd_out.write("Hello\n")
var s = fd_in.read_line
fd_out.write(s)
+fd_out.write("\n")
fd_err.write("World\n")
fd_err.write("World\n")