@@ -58,12 +58,6 @@ testArchive opts fp = do
5858 bs <- runIOorExplode $ readNative def txt >>= writePowerpoint opts
5959 return $ toArchive bs
6060
61−updateGoldenFile :: WriterOptions -> FilePath -> FilePath -> IO ()
62−updateGoldenFile opts nativeFP goldenFP = do
63− txt <- T.readFile nativeFP
64− bs <- runIOorExplode $ readNative def txt >>= writePowerpoint opts
65− BL.writeFile goldenFP bs
66−
6761compareFileList :: FilePath -> Archive -> Archive -> Maybe String
6862compareFileList goldenFP goldenArch testArch =
6963 let testFiles = filesInArchive testArch
@@ -184,7 +178,7 @@ pptxTest testName opts nativeFP goldenFP =
184178 , compareAllMediaFiles goldenArch testArch
185179 ]
186180 in return $ if null res then Nothing else Just $ unlines res)
187− (\_ -> updateGoldenFile opts nativeFP goldenFP)
181+ (\a -> BL.writeFile goldenFP $ fromArchive a)
188182
189183--------------------------------------------------------------
190184