about summary refs log tree commit diff
path: root/src/test.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-06-15T13·41+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-06-15T13·41+0000
commit21fe717ce2027187e553d1edec65ef68b5d3c702 (patch)
tree34ac1a94bb500f25793daba6f362c51240503ffe /src/test.cc
parentf66055fa1ef3eb208666b5ace7b5ab16bf7e8980 (diff)
* Refactoring: hash class.
Diffstat (limited to 'src/test.cc')
-rw-r--r--src/test.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test.cc b/src/test.cc
new file mode 100644
index 000000000000..cce226ba9267
--- /dev/null
+++ b/src/test.cc
@@ -0,0 +1,16 @@
+#include <iostream>
+
+#include "hash.hh"
+
+int main(int argc, char * * argv)
+{
+    Hash h = hashFile("/etc/passwd");
+    
+    cout << (string) h << endl;
+
+    h = parseHash("0b0ffd0538622bfe20b92c4aa57254d9");
+    
+    cout << (string) h << endl;
+
+    return 0;
+}