diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 02:14:08 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 02:14:08 +0000 |
commit | f5aca1a1b402bd7ebc944dc6e6fe65828d863365 (patch) | |
tree | 4a0fdd8e166d5c4b03543279d332b9a858ef62df /src/unit/hash.unit | |
parent | 10c557562e1d67c55314c212371ea9cb7f802863 (diff) | |
download | libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.gz libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.bz2 libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.xz libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.zip |
Bu::FString is now String, and there's a shell script to fix any other programs
that were using fstring, I hope.
Diffstat (limited to 'src/unit/hash.unit')
-rw-r--r-- | src/unit/hash.unit | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/unit/hash.unit b/src/unit/hash.unit index 124b074..2c1cf6a 100644 --- a/src/unit/hash.unit +++ b/src/unit/hash.unit | |||
@@ -6,14 +6,14 @@ | |||
6 | * terms of the license contained in the file LICENSE. | 6 | * terms of the license contained in the file LICENSE. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "bu/fstring.h" | 9 | #include "bu/string.h" |
10 | #include "bu/hash.h" | 10 | #include "bu/hash.h" |
11 | 11 | ||
12 | #include <stdio.h> | 12 | #include <stdio.h> |
13 | 13 | ||
14 | typedef Bu::Hash<Bu::FString, int> StrIntHash; | 14 | typedef Bu::Hash<Bu::String, int> StrIntHash; |
15 | typedef Bu::Hash<Bu::FString, Bu::FString> StrStrHash; | 15 | typedef Bu::Hash<Bu::String, Bu::String> StrStrHash; |
16 | typedef Bu::Hash<int, Bu::FString> IntStrHash; | 16 | typedef Bu::Hash<int, Bu::String> IntStrHash; |
17 | 17 | ||
18 | suite Hash | 18 | suite Hash |
19 | { | 19 | { |
@@ -24,7 +24,7 @@ suite Hash | |||
24 | for(int i=1;i<10000;i++) | 24 | for(int i=1;i<10000;i++) |
25 | { | 25 | { |
26 | sprintf(buf,"%d",i); | 26 | sprintf(buf,"%d",i); |
27 | Bu::FString sTmp(buf); | 27 | Bu::String sTmp(buf); |
28 | h[sTmp] = i; | 28 | h[sTmp] = i; |
29 | unitTest( h.has(sTmp) ); | 29 | unitTest( h.has(sTmp) ); |
30 | } | 30 | } |