mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 08:32:50 -06:00
fix the testsuite failure after the second run
This commit is contained in:
@@ -51,4 +51,5 @@ test-suite basic
|
|||||||
base,
|
base,
|
||||||
HUnit,
|
HUnit,
|
||||||
random,
|
random,
|
||||||
|
directory,
|
||||||
pgf2
|
pgf2
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import System.Random
|
import System.Random
|
||||||
|
import System.Directory
|
||||||
import Control.Exception
|
import Control.Exception
|
||||||
import Test.HUnit
|
import Test.HUnit
|
||||||
import PGF2
|
import PGF2
|
||||||
@@ -69,6 +70,9 @@ main = do
|
|||||||
,TestCase (assertEqual "unicode names 4" (Just "'а\\'б'") (fmap (showExpr []) (readExpr "'а\\'б'")))
|
,TestCase (assertEqual "unicode names 4" (Just "'а\\'б'") (fmap (showExpr []) (readExpr "'а\\'б'")))
|
||||||
]
|
]
|
||||||
|
|
||||||
|
removeFile "tests/basic.ngf" `catch` \e -> do
|
||||||
|
print (e :: SomeException)
|
||||||
|
|
||||||
gr1 <- readPGF "tests/basic.pgf"
|
gr1 <- readPGF "tests/basic.pgf"
|
||||||
gr2 <- bootNGF "tests/basic.pgf" "tests/basic.ngf"
|
gr2 <- bootNGF "tests/basic.pgf" "tests/basic.ngf"
|
||||||
gr3 <- readNGF "tests/basic.ngf"
|
gr3 <- readNGF "tests/basic.ngf"
|
||||||
|
|||||||
Reference in New Issue
Block a user