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/unit/hash.unit | |
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 '')
-rw-r--r-- | src/unit/hash.unit | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/unit/hash.unit b/src/unit/hash.unit index 124b074..64e70b6 100644 --- a/src/unit/hash.unit +++ b/src/unit/hash.unit | |||
@@ -1,19 +1,19 @@ | |||
1 | // vim: syntax=cpp | 1 | // vim: syntax=cpp |
2 | /* | 2 | /* |
3 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 3 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
4 | * | 4 | * |
5 | * This file is part of the libbu++ library and is released under the | 5 | * This file is part of the libbu++ library and is released under the |
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 | } |