diff options
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 | ||
