Skip to content

Commit 60b4f39

Browse files
committed
test: Compare on dump
For reasons I don't understand the Xml representations differ despite their textual representations being identical.
1 parent 4ca91ad commit 60b4f39

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

html-test/Main.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
import Data.Char
5+
import Data.Function (on)
56

67
import System.Environment
78
import System.FilePath
@@ -15,7 +16,7 @@ checkConfig = CheckConfig
1516
{ ccfgRead = parseXml
1617
, ccfgClean = stripIfRequired
1718
, ccfgDump = dumpXml
18-
, ccfgEqual = (==)
19+
, ccfgEqual = (==) `on` dumpXml
1920
}
2021

2122

hypsrc-test/Main.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import Data.Char
55
import Data.List
6+
import Data.Function (on)
67

78
import System.Environment
89
import System.FilePath
@@ -16,7 +17,7 @@ checkConfig = CheckConfig
1617
{ ccfgRead = parseXml
1718
, ccfgClean = \_ -> strip
1819
, ccfgDump = dumpXml
19-
, ccfgEqual = (==)
20+
, ccfgEqual = (==) `on` dumpXml
2021
}
2122
where
2223
strip = stripAnchors' . stripLinks' . stripFooter

0 commit comments

Comments
 (0)