1
0
forked from GitHub/gf-core

fix the testsuite failure after the second run

This commit is contained in:
krangelov
2021-08-31 10:20:51 +02:00
parent 5f5b0caba5
commit b1dd94e4b0
2 changed files with 5 additions and 0 deletions

View File

@@ -51,4 +51,5 @@ test-suite basic
base,
HUnit,
random,
directory,
pgf2

View File

@@ -1,4 +1,5 @@
import System.Random
import System.Directory
import Control.Exception
import Test.HUnit
import PGF2
@@ -69,6 +70,9 @@ main = do
,TestCase (assertEqual "unicode names 4" (Just "'а\\'б'") (fmap (showExpr []) (readExpr "'а\\'б'")))
]
removeFile "tests/basic.ngf" `catch` \e -> do
print (e :: SomeException)
gr1 <- readPGF "tests/basic.pgf"
gr2 <- bootNGF "tests/basic.pgf" "tests/basic.ngf"
gr3 <- readNGF "tests/basic.ngf"