Commit Graph

18 Commits

Author SHA1 Message Date
Benjamin Smith
71ea1c9961 Add lookupSOA and address typo in SOA Type 2017-10-20 13:16:45 -07:00
Erik de Castro Lopo
33f208b9c3 Add some more tests 2017-06-22 20:45:13 +10:00
Sergei Trofimovich
ed2ecd166f test2/doctests.hs: ignore 'network-data' package
Before the change tests fail on system
with many packages including iproute
and network-data installed globally:

  Test suite logged to: dist/test/dns-2.0.5-spec.log
  Test suite doctest: RUNNING...

  Network/DNS/Decode.hs:20:1: error:
    Ambiguous interface for ‘Data.IP’:
      it was found in multiple packages: network-data-0.5.3 iproute-1.7.0

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
2016-09-04 09:12:29 +01:00
Kazu Yamamoto
3187406396 Adopting the standard way to use doctest. 2013-09-13 10:20:57 +09:00
Michael Orlitzky
407360e63b Move hSpec tests for 'lookupSRC' into the (tested) docs for 'lookupSRV'. 2013-09-12 14:16:40 -04:00
Michael Orlitzky
afd6be4483 Remove unused import from LookupSpec.hs. 2013-09-12 13:53:02 -04:00
Michael Orlitzky
6468fad371 Move hSpec tests for 'lookupPTR' into the (tested) docs for 'lookupPTR'. 2013-09-12 13:41:04 -04:00
Michael Orlitzky
e2af4345db Move hSpec tests for 'lookupTXT' into the (tested) docs for 'lookupTXT' 2013-09-12 12:34:46 -04:00
Michael Orlitzky
ecaa45a839 Move hSpec tests for 'lookupNSAuth' into the (tested) docs for 'lookupNSAuth'.
Remove unused imports from LookupSpec.hs.
2013-09-12 12:25:26 -04:00
Michael Orlitzky
4634eab276 Move hSpec tests for 'lookupNS' into the (tested) docs for 'lookupNS'. 2013-09-12 12:08:49 -04:00
Michael Orlitzky
3240c6d01b Move hSpec tests for 'lookupAviaMX' into the (tested) docs for 'lookupAviaMX'.
Add a note to Lookup.hs about sorting the results.
2013-09-12 11:55:20 -04:00
Michael Orlitzky
6e4cfbbe6c Move hSpec tests for 'lookupAAAA' into the (tested) docs for 'lookupAAAA'. 2013-09-12 10:37:33 -04:00
Michael Orlitzky
db3f67e54f Move hSpec tests for 'lookupA' into the (tested) docs for 'lookupA'.
Refer to Data.ByteString.Char8 directly in doctests to save space.
2013-09-12 10:29:11 -04:00
Michael Orlitzky
5dfec76115 Add top-level documentation for Network.DNS.Lookup.
Remove the (now redundant, see Network.DNS.Lookup) TimeoutExpired hSpec.
2013-09-12 10:19:28 -04:00
Michael Orlitzky
c7f95317cc Add an hSpec test for 'lookupNSAuth'. 2013-09-06 10:29:48 -04:00
Michael Orlitzky
ea04e67cc5 Add a test to ensure that TimeoutExpired is returned on timeout. 2013-08-27 11:00:42 -04:00
Michael Orlitzky
a7cfbd80a3 Update all of the existing lookup tests with the new expected results. 2013-08-26 21:53:05 -04:00
Kazu Yamamoto
310ba6c504 separating tests. 2013-07-31 13:52:22 +09:00