Skip to content

Commit a448d57

Browse files
committed
update: move into Utils
1 parent 7876b0e commit a448d57

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

lambda-buffers-compiler/lambda-buffers-compiler.cabal

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ test-suite tests
156156

157157
other-modules:
158158
Test.KindCheck
159-
Test.Proto.CompilerInput
160-
Test.Proto.Module
161-
Test.Proto.SourceInfo
162-
Test.Proto.TyDef
163-
Test.Proto.Utils
164159
Test.TypeClassCheck
160+
Test.Utils.CompilerInput
161+
Test.Utils.Constructors
162+
Test.Utils.Module
163+
Test.Utils.SourceInfo
164+
Test.Utils.TyDef

lambda-buffers-compiler/test/Test/KindCheck.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ import LambdaBuffers.Compiler.KindCheck.Variable (
1515
import LambdaBuffers.Compiler.ProtoCompat.Types qualified as P (
1616
CompilerInput (CompilerInput),
1717
)
18-
import Test.Proto.CompilerInput (
19-
compilerInput'incoherent,
20-
compilerInput'maybe,
21-
)
2218
import Test.QuickCheck (
2319
Arbitrary (arbitrary, shrink),
2420
Property,
@@ -31,6 +27,10 @@ import Test.QuickCheck (
3127
import Test.Tasty (TestTree, testGroup)
3228
import Test.Tasty.HUnit (assertBool, testCase, (@?=))
3329
import Test.Tasty.QuickCheck (testProperty)
30+
import Test.Utils.CompilerInput (
31+
compilerInput'incoherent,
32+
compilerInput'maybe,
33+
)
3434

3535
--------------------------------------------------------------------------------
3636
-- Top Level tests

lambda-buffers-compiler/test/Test/Proto/CompilerInput.hs renamed to lambda-buffers-compiler/test/Test/Utils/CompilerInput.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module Test.Proto.CompilerInput (compilerInput'incoherent, compilerInput'maybe) where
1+
module Test.Utils.CompilerInput (compilerInput'incoherent, compilerInput'maybe) where
22

33
import Control.Lens ((&), (.~))
44
import LambdaBuffers.Compiler.ProtoCompat qualified as P
5-
import Test.Proto.Module (module'incoherent, module'maybe)
5+
import Test.Utils.Module (module'incoherent, module'maybe)
66

77
-- | Compiler Input containing 1 module with 1 definition - Maybe.
88
compilerInput'maybe :: P.CompilerInput

lambda-buffers-compiler/test/Test/Proto/Utils.hs renamed to lambda-buffers-compiler/test/Test/Utils/Constructors.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Test.Proto.Utils (
1+
module Test.Utils.Constructors (
22
_tyName,
33
_varName,
44
_tyVar,
@@ -17,7 +17,7 @@ module Test.Proto.Utils (
1717
import Data.List.NonEmpty (fromList)
1818
import Data.Text (Text)
1919
import LambdaBuffers.Compiler.ProtoCompat qualified as P
20-
import Test.Proto.SourceInfo (sourceInfo'empty)
20+
import Test.Utils.SourceInfo (sourceInfo'empty)
2121

2222
_tyName :: Text -> P.TyName
2323
_tyName x = P.TyName x sourceInfo'empty

lambda-buffers-compiler/test/Test/Proto/Module.hs renamed to lambda-buffers-compiler/test/Test/Utils/Module.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module Test.Proto.Module (module'maybe, module'incoherent) where
1+
module Test.Utils.Module (module'maybe, module'incoherent) where
22

33
import Control.Lens ((%~), (&))
44
import LambdaBuffers.Compiler.ProtoCompat qualified as P
5-
import Test.Proto.SourceInfo (sourceInfo'empty)
6-
import Test.Proto.TyDef (tyDef'incoherent, tyDef'maybe)
5+
import Test.Utils.SourceInfo (sourceInfo'empty)
6+
import Test.Utils.TyDef (tyDef'incoherent, tyDef'maybe)
77

88
module'maybe :: P.Module
99
module'maybe =

lambda-buffers-compiler/test/Test/Proto/SourceInfo.hs renamed to lambda-buffers-compiler/test/Test/Utils/SourceInfo.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Test.Proto.SourceInfo (sourceInfo'empty) where
1+
module Test.Utils.SourceInfo (sourceInfo'empty) where
22

33
import LambdaBuffers.Compiler.ProtoCompat qualified as P
44

lambda-buffers-compiler/test/Test/Proto/TyDef.hs renamed to lambda-buffers-compiler/test/Test/Utils/TyDef.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
module Test.Proto.TyDef (tyDef'maybe, tyDef'incoherent) where
1+
module Test.Utils.TyDef (tyDef'maybe, tyDef'incoherent) where
22

33
import LambdaBuffers.Compiler.ProtoCompat qualified as P
4-
import Test.Proto.Utils (
4+
import Test.Utils.Constructors (
55
_TupleI,
66
_TyAbs,
77
_TyDef,

0 commit comments

Comments
 (0)