Skip to content
Snippets Groups Projects
Commit 60b4f394 authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

test: Compare on dump

For reasons I don't understand the Xml representations differ despite
their textual representations being identical.
parent 4ca91adc
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
import Data.Char
import Data.Function (on)
import System.Environment
import System.FilePath
......@@ -15,7 +16,7 @@ checkConfig = CheckConfig
{ ccfgRead = parseXml
, ccfgClean = stripIfRequired
, ccfgDump = dumpXml
, ccfgEqual = (==)
, ccfgEqual = (==) `on` dumpXml
}
......
......@@ -3,6 +3,7 @@
import Data.Char
import Data.List
import Data.Function (on)
import System.Environment
import System.FilePath
......@@ -16,7 +17,7 @@ checkConfig = CheckConfig
{ ccfgRead = parseXml
, ccfgClean = \_ -> strip
, ccfgDump = dumpXml
, ccfgEqual = (==)
, ccfgEqual = (==) `on` dumpXml
}
where
strip = stripAnchors' . stripLinks' . stripFooter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment