diff -r bfbb04d6683f -r 022428df37c9 sourcehook/test/main.cpp --- a/sourcehook/test/main.cpp Sun Sep 11 23:24:18 2005 +0000 +++ b/sourcehook/test/main.cpp Tue Sep 13 16:47:42 2005 +0000 @@ -6,6 +6,9 @@ #include #include #include +#include +#include +#include "sh_tinyhash.h" #include "sourcehook_impl.h" using namespace std; @@ -67,6 +70,24 @@ DO_TEST(PlugSys); DO_TEST(Bail); +template <> +int SourceHook::HashFunction(const int & k) +{ + return k; +} + +template <> +int SourceHook::Compare(const int & v1, const int & v2) +{ + if (v1 == v2) + return 0; + if (v1 < v2) + return -1; + if (v1 > v2) + return 1; + return 0; +} + int main(int argc, char *argv[]) { std::string error;