From 76ed3c164662f4ee4c109bb2054c61c99ea86251 Mon Sep 17 00:00:00 2001
From: Mike Buland <eichlan@xagasoft.com>
Date: Wed, 26 Jul 2006 21:58:35 +0000
Subject: Added the not-yet-working hash class.  More thought must be done. 
 This doesn't actually change any existing code really just adds a new class
 that you can't use because it's commented out.  I'll probably move it to a
 branch.

---
 src/test/exception/exception.cpp |  8 ++++----
 src/test/hash/main.cpp           | 10 ++++++++++
 2 files changed, 14 insertions(+), 4 deletions(-)
 create mode 100644 src/test/hash/main.cpp

(limited to 'src/test')

diff --git a/src/test/exception/exception.cpp b/src/test/exception/exception.cpp
index 33dcd5e..6417692 100644
--- a/src/test/exception/exception.cpp
+++ b/src/test/exception/exception.cpp
@@ -1,16 +1,16 @@
 #include <iostream>
-#include "exception.h"
+#include "exceptions.h"
 
 int main()
 {
 	try
 	{
-		throw Exception( 42, "There was an error on line: %d", __LINE__ );
+		throw ExceptionBase( 42, "There was an error on line: %d", __LINE__ );
 	}
-	catch( Exception &e )
+	catch( ExceptionBase &e )
 	{
 		std::cout << "Error "<< e.getErrorCode() << ": " << e.what() << "\n";
 	}
 
-	throw Exception( 112, "This exception wasn't caught!");
+	throw ExceptionBase( 112, "This exception wasn't caught!");
 }
diff --git a/src/test/hash/main.cpp b/src/test/hash/main.cpp
new file mode 100644
index 0000000..d0f5fa6
--- /dev/null
+++ b/src/test/hash/main.cpp
@@ -0,0 +1,10 @@
+#include "hash.h"
+#include "staticstring.h"
+
+int main()
+{
+	//Hash<class StaticString, int> sTest;
+
+	//sTest.hasKey("hello");
+}
+
-- 
cgit v1.2.3