Skip to content

Commit b2eb133

Browse files
committed
Fixed tests
1 parent 9b3a530 commit b2eb133

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/Test/Codec/CBOR/Cuddle/CDDL/Examples.hs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@
33
module Test.Codec.CBOR.Cuddle.CDDL.Examples (spec) where
44

55
import Codec.CBOR.Cuddle.CDDL (Value (..), ValueVariant (..))
6-
import Codec.CBOR.Cuddle.CDDL.CTree (CTree (..), CTreeRoot')
6+
import Codec.CBOR.Cuddle.CDDL.CTree (CTree (..), CTreeRoot)
77
import Codec.CBOR.Cuddle.CDDL.Postlude (PTerm (..))
88
import Codec.CBOR.Cuddle.CDDL.Prelude (prependPrelude)
99
import Codec.CBOR.Cuddle.CDDL.Resolve (
10-
MonoRef,
10+
MonoReferenced,
1111
NameResolutionFailure (..),
12-
OrRef (..),
1312
fullResolveCDDL,
1413
)
1514
import Codec.CBOR.Cuddle.Parser (pCDDL)
16-
import Data.Functor.Identity (Identity)
1715
import Data.Text.IO qualified as T
1816
import Test.HUnit (assertFailure)
1917
import Test.Hspec
2018
import Text.Megaparsec (parse)
2119
import Text.Megaparsec.Error (errorBundlePretty)
2220

23-
tryValidateFile :: FilePath -> IO (Either NameResolutionFailure (CTreeRoot' Identity MonoRef))
21+
tryValidateFile :: FilePath -> IO (Either NameResolutionFailure (CTreeRoot MonoReferenced))
2422
tryValidateFile filePath = do
2523
contents <- T.readFile filePath
2624
cddl <- case parse pCDDL "" contents of
@@ -60,4 +58,4 @@ spec = do
6058
validateExpectFailure "example/cddl-files/validator/negative/too-many-args.cddl" $
6159
MismatchingArgs "foo" ["a"]
6260
validateExpectFailure "example/cddl-files/validator/negative/args-to-postlude.cddl" $
63-
ArgsToPostlude PTUInt [It (Literal (Value (VUInt 3) mempty))]
61+
ArgsToPostlude PTUInt [Literal (Value (VUInt 3) mempty)]

0 commit comments

Comments
 (0)