Merge: tests: Test result update for `curl_http`
[nit.git] / tests / sav / test_file_read3.res
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 true
3 #
4 true
5 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
6 true
7 #
8 true
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 true
11 # you may not use this file except in compliance with the License.
12 true
13 # You may obtain a copy of the License at
14 true
15 #
16 true
17 #     http://www.apache.org/licenses/LICENSE-2.0
18 true
19 #
20 true
21 # Unless required by applicable law or agreed to in writing, software
22 true
23 # distributed under the License is distributed on an "AS IS" BASIS,
24 true
25 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26 true
27 # See the License for the specific language governing permissions and
28 true
29 # limitations under the License.
30 true
31
32 true
33 var f = new FileReader.open("test_file_read.nit")
34 true
35 var s: String
36 true
37 while not f.eof do
38 true
39     s = f.read_line
40 true
41     printn(s)
42 true
43     printn("\n")
44 true
45 end
46 true
47 f.close
48 true
49
50 true
51 f.reopen
52 true
53 printn(f.read(10))
54 true
55 printn("|")
56 true
57 printn(f.read_all)
58 true
59 ---
60 true
61 # This file is part of NIT ( http://www.nitlanguage.org ).
62 true
63 # This file is part of NIT ( http://www.nitlanguage.org ).
64 true
65 true
66 #
67 true
68 #
69 true
70 true
71 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
72 true
73 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
74 true
75 true
76 #
77 true
78 #
79 true
80 true
81 # Licensed under the Apache License, Version 2.0 (the "License");
82 true
83 # Licensed under the Apache License, Version 2.0 (the "License");
84 true
85 true
86 # you may not use this file except in compliance with the License.
87 true
88 # you may not use this file except in compliance with the License.
89 true
90 true
91 # You may obtain a copy of the License at
92 true
93 # You may obtain a copy of the License at
94 true
95 true
96 #
97 true
98 #
99 true
100 true
101 #     http://www.apache.org/licenses/LICENSE-2.0
102 true
103 #     http://www.apache.org/licenses/LICENSE-2.0
104 true
105 true
106 #
107 true
108 #
109 true
110 true
111 # Unless required by applicable law or agreed to in writing, software
112 true
113 # Unless required by applicable law or agreed to in writing, software
114 true
115 true
116 # distributed under the License is distributed on an "AS IS" BASIS,
117 true
118 # distributed under the License is distributed on an "AS IS" BASIS,
119 true
120 true
121 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
122 true
123 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
124 true
125 true
126 # See the License for the specific language governing permissions and
127 true
128 # See the License for the specific language governing permissions and
129 true
130 true
131 # limitations under the License.
132 true
133 # limitations under the License.
134 true
135 true
136
137 true
138
139 true
140 true
141 var f = new FileReader.open("test_file_read.nit")
142 true
143 var f = new FileReader.open("test_file_read.nit")
144 true
145 true
146 var s: String
147 true
148 var s: String
149 true
150 true
151 while not f.eof do
152 true
153 while not f.eof do
154 true
155 true
156     s = f.read_line
157 true
158     s = f.read_line
159 true
160 true
161     printn(s)
162 true
163     printn(s)
164 true
165 true
166     printn("\n")
167 true
168     printn("\n")
169 true
170 true
171 end
172 true
173 end
174 true
175 true
176 f.close
177 true
178 f.close
179 true
180 true
181
182 true
183
184 true
185 true
186 f.reopen
187 true
188 f.reopen
189 true
190 true
191 printn(f.read(10))
192 true
193 printn(f.read(10))
194 true
195 true
196 printn("|")
197 true
198 printn("|")
199 true
200 true
201 printn(f.read_all)
202 true
203 printn(f.read_all)
204 true
205 ---
206 # This file is part of NIT ( http://www.nitlanguage.org ).
207 # This file is part of NIT ( http://www.nitlanguage.org ).
208 #
209 #
210 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
211 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
212 #
213 #
214 # Licensed under the Apache License, Version 2.0 (the "License");
215 # Licensed under the Apache License, Version 2.0 (the "License");
216 # you may not use this file except in compliance with the License.
217 # you may not use this file except in compliance with the License.
218 # You may obtain a copy of the License at
219 # You may obtain a copy of the License at
220 #
221 #
222 #     http://www.apache.org/licenses/LICENSE-2.0
223 #     http://www.apache.org/licenses/LICENSE-2.0
224 #
225 #
226 # Unless required by applicable law or agreed to in writing, software
227 # Unless required by applicable law or agreed to in writing, software
228 # distributed under the License is distributed on an "AS IS" BASIS,
229 # distributed under the License is distributed on an "AS IS" BASIS,
230 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
231 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
232 # See the License for the specific language governing permissions and
233 # See the License for the specific language governing permissions and
234 # limitations under the License.
235 # limitations under the License.
236
237
238 var f = new FileReader.open("test_file_read.nit")
239 var f = new FileReader.open("test_file_read.nit")
240 var s: String
241 var s: String
242 while not f.eof do
243 while not f.eof do
244     s = f.read_line
245     s = f.read_line
246     printn(s)
247     printn(s)
248     printn("\n")
249     printn("\n")
250 end
251 end
252 f.close
253 f.close
254
255
256 f.reopen
257 f.reopen
258 printn(f.read(10))
259 printn(f.read(10))
260 printn("|")
261 printn("|")
262 printn(f.read_all)
263 printn(f.read_all)