summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-02-12 06:33:09 +0000
committerMike Buland <eichlan@xagasoft.com>2010-02-12 06:33:09 +0000
commitd66d62236b3354e26157efa91689d1a22ae3866d (patch)
treebe168d183a56189d039fa3fbffc25d75fc1d0633 /src/tests
parentd61161061bd5998ef4b1fc2aaad2cf4bbd78e90d (diff)
downloadlibbu++-d66d62236b3354e26157efa91689d1a22ae3866d.tar.gz
libbu++-d66d62236b3354e26157efa91689d1a22ae3866d.tar.bz2
libbu++-d66d62236b3354e26157efa91689d1a22ae3866d.tar.xz
libbu++-d66d62236b3354e26157efa91689d1a22ae3866d.zip
Well, it compiles. I think I may make newline inherit from buffer, I dunno...
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/csv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/csv.cpp b/src/tests/csv.cpp
index 03e1df8..96db756 100644
--- a/src/tests/csv.cpp
+++ b/src/tests/csv.cpp
@@ -2,6 +2,7 @@
2#include "bu/file.h" 2#include "bu/file.h"
3#include "bu/newline.h" 3#include "bu/newline.h"
4#include "bu/csvreader.h" 4#include "bu/csvreader.h"
5#include "bu/buffer.h"
5#include "bu/sio.h" 6#include "bu/sio.h"
6 7
7using namespace Bu; 8using namespace Bu;
@@ -23,7 +24,8 @@ public:
23 { 24 {
24 File fIn( aArgs[1], File::Read ); 25 File fIn( aArgs[1], File::Read );
25 NewLine nlIn( fIn ); 26 NewLine nlIn( fIn );
26 CsvReader rCsv( nlIn ); 27 Buffer bIn( nlIn );
28 CsvReader rCsv( bIn );
27 while( !fIn.isEos() ) 29 while( !fIn.isEos() )
28 { 30 {
29 sio << rCsv.readLine() << sio.nl; 31 sio << rCsv.readLine() << sio.nl;