make test data dir linke namecoin namespace
authorEugene Crosser <crosser@average.org>
Sat, 12 Apr 2014 15:02:13 +0000 (19:02 +0400)
committerEugene Crosser <crosser@average.org>
Sat, 12 Apr 2014 15:02:13 +0000 (19:02 +0400)
d/root [new file with mode: 0644]
data/root [deleted file]
test.hs

diff --git a/d/root b/d/root
new file mode 100644 (file)
index 0000000..a59957c
--- /dev/null
+++ b/d/root
@@ -0,0 +1 @@
+{"info":{"description":"Dot-BIT Project - Official Website","registrar":"http://register.dot-bit.org"},"fingerprint":["30:B0:60:94:32:08:EC:F5:BE:DF:F4:BB:EE:52:90:2C:5D:47:62:46"],"ns":["ns0.web-sweet-web.net","ns1.web-sweet-web.net"],"map":{"":{"ns":["ns0.web-sweet-web.net","ns1.web-sweet-web.net"]}},"email":"register@dot-bit.org"}
diff --git a/data/root b/data/root
deleted file mode 100644 (file)
index a59957c..0000000
--- a/data/root
+++ /dev/null
@@ -1 +0,0 @@
-{"info":{"description":"Dot-BIT Project - Official Website","registrar":"http://register.dot-bit.org"},"fingerprint":["30:B0:60:94:32:08:EC:F5:BE:DF:F4:BB:EE:52:90:2C:5D:47:62:46"],"ns":["ns0.web-sweet-web.net","ns1.web-sweet-web.net"],"map":{"":{"ns":["ns0.web-sweet-web.net","ns1.web-sweet-web.net"]}},"email":"register@dot-bit.org"}
diff --git a/test.hs b/test.hs
index 7c3be16f36d55dc85299aba23a34d422b07a389f..8f5b77c330a53812d4a2e7b81f8a847e3faed911 100644 (file)
--- a/test.hs
+++ b/test.hs
@@ -11,7 +11,7 @@ import Control.Exception
 import NmcDom
 
 queryOp :: ByteString -> IO (Either String ByteString)
-queryOp key = catch (readFile ("data/" ++ (unpack key)) >>= return . Right)
+queryOp key = catch (readFile ("d/" ++ (unpack key)) >>= return . Right)
                     (\e -> return (Left (show (e :: IOException))))
 
 main = do