about summary refs log tree commit diff
path: root/src/test.cc
diff options
context:
space:
mode:
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;
+}