aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-01-20 18:16:38 +0000
committerMike Buland <eichlan@xagasoft.com>2011-01-20 18:16:38 +0000
commit7292af7c475c61920987ec498144a3fd1e90f1e8 (patch)
tree4bc09eea26fb13915395642311f0617f1c0bff4e /src/unit
parent4a6e25854a3b70c8d7a526a22a78760b97118669 (diff)
downloadlibgats-7292af7c475c61920987ec498144a3fd1e90f1e8.tar.gz
libgats-7292af7c475c61920987ec498144a3fd1e90f1e8.tar.bz2
libgats-7292af7c475c61920987ec498144a3fd1e90f1e8.tar.xz
libgats-7292af7c475c61920987ec498144a3fd1e90f1e8.zip
Updated with new Bu::String.
Diffstat (limited to 'src/unit')
-rw-r--r--src/unit/basic.unit8
-rw-r--r--src/unit/io.unit6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/unit/basic.unit b/src/unit/basic.unit
index c27b70c..369e095 100644
--- a/src/unit/basic.unit
+++ b/src/unit/basic.unit
@@ -52,10 +52,10 @@ suite Basic
52 52
53 test string 53 test string
54 { 54 {
55 Bu::List<Bu::FString> lStrs; 55 Bu::List<Bu::String> lStrs;
56 Bu::MemBuf mb; 56 Bu::MemBuf mb;
57 57
58 lStrs.append( Bu::FString() ); 58 lStrs.append( Bu::String() );
59 Gats::String("").write( mb ); 59 Gats::String("").write( mb );
60 60
61 { 61 {
@@ -66,7 +66,7 @@ suite Basic
66 } 66 }
67 for( int j = 1; j <= (1<<16); j=j<<1 ) 67 for( int j = 1; j <= (1<<16); j=j<<1 )
68 { 68 {
69 Bu::FString s( j ); 69 Bu::String s( j );
70 for( int x = 0; x < j; x++ ) 70 for( int x = 0; x < j; x++ )
71 { 71 {
72 s[x] = (unsigned char)(random()%256); 72 s[x] = (unsigned char)(random()%256);
@@ -78,7 +78,7 @@ suite Basic
78 78
79 mb.setPos( 0 ); 79 mb.setPos( 0 );
80 80
81 for( Bu::List<Bu::FString>::iterator i = lStrs.begin(); i; i++ ) 81 for( Bu::List<Bu::String>::iterator i = lStrs.begin(); i; i++ )
82 { 82 {
83 Gats::Object *pObj = Gats::Object::read( mb ); 83 Gats::Object *pObj = Gats::Object::read( mb );
84 if( pObj->getType() != Gats::typeString ) 84 if( pObj->getType() != Gats::typeString )
diff --git a/src/unit/io.unit b/src/unit/io.unit
index 2cd8376..1a9747f 100644
--- a/src/unit/io.unit
+++ b/src/unit/io.unit
@@ -26,7 +26,7 @@ suite Basic
26{ 26{
27 test basic 27 test basic
28 { 28 {
29 Bu::FString sTmpFileName("temp-XXXXXXXXX"); 29 Bu::String sTmpFileName("temp-XXXXXXXXX");
30 Bu::File fIo = tempFile( sTmpFileName ); 30 Bu::File fIo = tempFile( sTmpFileName );
31 31
32 { 32 {
@@ -60,7 +60,7 @@ suite Basic
60 60
61 test spacers 61 test spacers
62 { 62 {
63 Bu::FString sTmpFileName("temp-XXXXXXXXX"); 63 Bu::String sTmpFileName("temp-XXXXXXXXX");
64 Bu::File fIo = tempFile( sTmpFileName ); 64 Bu::File fIo = tempFile( sTmpFileName );
65 65
66 { 66 {
@@ -94,7 +94,7 @@ suite Basic
94 94
95 test biggerSpacers 95 test biggerSpacers
96 { 96 {
97 Bu::FString sTmpFileName("temp-XXXXXXXXX"); 97 Bu::String sTmpFileName("temp-XXXXXXXXX");
98 Bu::File fIo = tempFile( sTmpFileName ); 98 Bu::File fIo = tempFile( sTmpFileName );
99 99
100 { 100 {