diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/unitsuite.h | |
parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to 'src/unitsuite.h')
-rw-r--r-- | src/unitsuite.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/unitsuite.h b/src/unitsuite.h index 475ee48..2250a4d 100644 --- a/src/unitsuite.h +++ b/src/unitsuite.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
3 | * | 3 | * |
4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | #include <stdint.h> | 11 | #include <stdint.h> |
12 | #include "bu/list.h" | 12 | #include "bu/list.h" |
13 | #include "bu/fstring.h" | 13 | #include "bu/string.h" |
14 | #include "bu/file.h" | 14 | #include "bu/file.h" |
15 | #include "bu/array.h" | 15 | #include "bu/array.h" |
16 | 16 | ||
@@ -63,7 +63,7 @@ namespace Bu | |||
63 | 63 | ||
64 | int run( int argc=0, char *argv[]=NULL ); | 64 | int run( int argc=0, char *argv[]=NULL ); |
65 | 65 | ||
66 | Bu::File tempFile( Bu::FString &sFileName ); | 66 | Bu::File tempFile( Bu::String &sFileName ); |
67 | 67 | ||
68 | typedef void (UnitSuite::*Test)(); | 68 | typedef void (UnitSuite::*Test)(); |
69 | 69 | ||
@@ -71,12 +71,12 @@ namespace Bu | |||
71 | { | 71 | { |
72 | public: | 72 | public: |
73 | Failed() : str(""), bFile( false ) { } | 73 | Failed() : str(""), bFile( false ) { } |
74 | Failed( const FString &s ) : str( s ), bFile( false ) { } | 74 | Failed( const String &s ) : str( s ), bFile( false ) { } |
75 | Failed( const FString &s, const FString &sFile, int nLine ) : | 75 | Failed( const String &s, const String &sFile, int nLine ) : |
76 | str( s ), sFile( sFile ), nLine( nLine ), bFile( true ) { } | 76 | str( s ), sFile( sFile ), nLine( nLine ), bFile( true ) { } |
77 | 77 | ||
78 | FString str; | 78 | String str; |
79 | FString sFile; | 79 | String sFile; |
80 | int nLine; | 80 | int nLine; |
81 | bool bFile; | 81 | bool bFile; |
82 | }; | 82 | }; |
@@ -93,8 +93,8 @@ namespace Bu | |||
93 | }; | 93 | }; |
94 | 94 | ||
95 | protected: | 95 | protected: |
96 | void add( Test fTest, const Bu::FString &sName, Expect e=expectPass ); | 96 | void add( Test fTest, const Bu::String &sName, Expect e=expectPass ); |
97 | void setName( const FString &sName ); | 97 | void setName( const String &sName ); |
98 | 98 | ||
99 | void dispProgress(); | 99 | void dispProgress(); |
100 | void setStepCount( int iSteps ); | 100 | void setStepCount( int iSteps ); |
@@ -102,23 +102,23 @@ namespace Bu | |||
102 | void setProgress( int iAmnt ); | 102 | void setProgress( int iAmnt ); |
103 | 103 | ||
104 | private: | 104 | private: |
105 | int onListCases( Bu::Array<Bu::FString> aParam ); | 105 | int onListCases( Bu::Array<Bu::String> aParam ); |
106 | 106 | ||
107 | private: | 107 | private: |
108 | typedef struct TestInfo | 108 | typedef struct TestInfo |
109 | { | 109 | { |
110 | FString sName; | 110 | String sName; |
111 | Test fTest; | 111 | Test fTest; |
112 | Expect eExpect; | 112 | Expect eExpect; |
113 | } TestInfo; | 113 | } TestInfo; |
114 | 114 | ||
115 | typedef Bu::List<TestInfo> TestList; | 115 | typedef Bu::List<TestInfo> TestList; |
116 | TestList lTests; | 116 | TestList lTests; |
117 | FString sSuiteName; | 117 | String sSuiteName; |
118 | 118 | ||
119 | int iOptions; | 119 | int iOptions; |
120 | 120 | ||
121 | typedef Bu::List<Bu::FString> StrList; | 121 | typedef Bu::List<Bu::String> StrList; |
122 | StrList lFileCleanup; | 122 | StrList lFileCleanup; |
123 | int iNameWidth; | 123 | int iNameWidth; |
124 | int iStepCount; | 124 | int iStepCount; |