diff options
Diffstat (limited to 'contrib/iostream3/test.cc')
-rw-r--r-- | contrib/iostream3/test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/iostream3/test.cc b/contrib/iostream3/test.cc index 9ffa8be..9423533 100644 --- a/contrib/iostream3/test.cc +++ b/contrib/iostream3/test.cc | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Test program for gzifstream and gzofstream | 2 | * Test program for gzifstream and gzofstream |
3 | * | 3 | * |
4 | * by Ludwig Schwardt <schwardt@sun.ac.za> | 4 | * by Ludwig Schwardt <schwardt@sun.ac.za> |
5 | * original version by Kevin Ruland <kevin@rodin.wustl.edu> | 5 | * original version by Kevin Ruland <kevin@rodin.wustl.edu> |
6 | */ | 6 | */ |
@@ -13,15 +13,15 @@ int main() { | |||
13 | gzofstream outf; | 13 | gzofstream outf; |
14 | gzifstream inf; | 14 | gzifstream inf; |
15 | char buf[80]; | 15 | char buf[80]; |
16 | 16 | ||
17 | outf.open("test1.txt.gz"); | 17 | outf.open("test1.txt.gz"); |
18 | outf << "The quick brown fox sidestepped the lazy canine\n" | 18 | outf << "The quick brown fox sidestepped the lazy canine\n" |
19 | << 1.3 << "\nPlan " << 9 << std::endl; | 19 | << 1.3 << "\nPlan " << 9 << std::endl; |
20 | outf.close(); | 20 | outf.close(); |
21 | std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n" | 21 | std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n" |
22 | << "The quick brown fox sidestepped the lazy canine\n" | 22 | << "The quick brown fox sidestepped the lazy canine\n" |
23 | << 1.3 << "\nPlan " << 9 << std::endl; | 23 | << 1.3 << "\nPlan " << 9 << std::endl; |
24 | 24 | ||
25 | std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n"; | 25 | std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n"; |
26 | inf.open("test1.txt.gz"); | 26 | inf.open("test1.txt.gz"); |
27 | while (inf.getline(buf,80,'\n')) { | 27 | while (inf.getline(buf,80,'\n')) { |