From f5b9d8d923822c31b98b39ba0fabae24fadc6d9c Mon Sep 17 00:00:00 2001 From: David Date: Tue, 11 Nov 2008 01:06:28 +0000 Subject: david - added operator= and copy constructor to Bu::Array, and updated unit tests to test it --- src/unit/hash.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/unit/hash.cpp') 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: { StrStrHash h; h["Hi"] = "Yo"; + h["Bye"] = "Later"; unitTest( h["Hi"].getValue() == "Yo" ); + + StrStrHash h2(h); + unitTest( h2["Hi"].getValue() = "Yo" ); + unitTest( h2["Bye"].getValue() = "Later" ); + + StrStrHash h3; + h3 = h; + unitTest( h3["Hi"].getValue() = "Yo" ); + unitTest( h3["Bye"].getValue() = "Later" ); } }; -- cgit v1.2.3