diff options
author | David <david@xagasoft.com> | 2008-11-11 01:06:28 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2008-11-11 01:06:28 +0000 |
commit | f5b9d8d923822c31b98b39ba0fabae24fadc6d9c (patch) | |
tree | 34cdea37633298b7b4e95a5d4df6b451d7dd3a69 /src/unit/hash.cpp | |
parent | 4bbeb6208ac33f71a09701cc5251f0412977946e (diff) | |
download | libbu++-f5b9d8d923822c31b98b39ba0fabae24fadc6d9c.tar.gz libbu++-f5b9d8d923822c31b98b39ba0fabae24fadc6d9c.tar.bz2 libbu++-f5b9d8d923822c31b98b39ba0fabae24fadc6d9c.tar.xz libbu++-f5b9d8d923822c31b98b39ba0fabae24fadc6d9c.zip |
david - added operator= and copy constructor to Bu::Array, and updated unit tests to test it
Diffstat (limited to '')
-rw-r--r-- | src/unit/hash.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unit/hash.cpp b/src/unit/hash.cpp index b869bdd..de4edd1 100644 --- a/src/unit/hash.cpp +++ b/src/unit/hash.cpp | |||
@@ -54,7 +54,17 @@ public: | |||
54 | { | 54 | { |
55 | StrStrHash h; | 55 | StrStrHash h; |
56 | h["Hi"] = "Yo"; | 56 | h["Hi"] = "Yo"; |
57 | h["Bye"] = "Later"; | ||
57 | unitTest( h["Hi"].getValue() == "Yo" ); | 58 | unitTest( h["Hi"].getValue() == "Yo" ); |
59 | |||
60 | StrStrHash h2(h); | ||
61 | unitTest( h2["Hi"].getValue() = "Yo" ); | ||
62 | unitTest( h2["Bye"].getValue() = "Later" ); | ||
63 | |||
64 | StrStrHash h3; | ||
65 | h3 = h; | ||
66 | unitTest( h3["Hi"].getValue() = "Yo" ); | ||
67 | unitTest( h3["Bye"].getValue() = "Later" ); | ||
58 | } | 68 | } |
59 | }; | 69 | }; |
60 | 70 | ||