Skip to content

Commit 0070444

Browse files
committed
add testSourceRepoList stub (#6101)
1 parent 5b5047a commit 0070444

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cabal-install/tests/IntegrationTests2/ProjectConfig/ParsecTests.hs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ parserTests = [
2929
testCase "read packages" testPackages
3030
, testCase "read optional-packages" testOptionalPackages
3131
, testCase "read extra-packages" testExtraPackages
32+
, testCase "read source-repository-package" testSourceRepoList
3233
]
3334

34-
-- Currently I compare the results of legacy parser with the new parser
35-
-- When the parser is implemented I will migrate it to compare to actual values
3635
testLegacyRead :: Assertion
3736
testLegacyRead = do
3837
httpTransport <- configureTransport verbosity [] Nothing
@@ -68,6 +67,13 @@ testOptionalPackages = do
6867
(config, legacy) <- readConfigDefault "optional-packages"
6968
assertConfig expected config legacy (projectPackagesOptional . condTreeData)
7069

70+
testSourceRepoList :: Assertion
71+
testSourceRepoList = do
72+
let expected = [
73+
]
74+
(config, legacy) <- readConfigDefault "source-repository-packages"
75+
assertConfig expected config legacy (projectPackagesRepo . condTreeData)
76+
7177
testExtraPackages :: Assertion
7278
testExtraPackages = do
7379
let expected = [

0 commit comments

Comments
 (0)