Skip to content

Commit

Permalink
make a non trival test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jappeace committed Nov 13, 2023
1 parent d3efeaa commit d3adb26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
10 changes: 10 additions & 0 deletions Cabal-tests/tests/ParserTests/exactPrint/bounded.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cabal-version: 3.0
name: bounded
version: 0
synopsis: The -any none demo
build-type: Simple

library
default-language: Haskell2010
exposed-modules: AnyNone
build-depends: base <5
24 changes: 2 additions & 22 deletions Cabal-tests/tests/PrinterTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,8 @@ tests = testGroup "printer tests"
-- Parse some cabal file - print it like cabal file
printExact :: TestTree
printExact = testGroup "printExact"
[ testParsePrintExact "anynone.cabal"
-- , warningTest "nbsp.cabal"
-- , warningTest "tab.cabal"
-- , warningTest "utf8.cabal"
-- , warningTest "bool.cabal"
-- , warningTest "versiontag.cabal"
-- , warningTest "newsyntax.cabal"
-- , warningTest "oldsyntax.cabal"
-- , warningTest "deprecatedfield.cabal"
-- , warningTest "subsection.cabal"
-- , warningTest "unknownfield.cabal"
-- , warningTest "unknownsection.cabal"
-- , warningTest "trailingfield.cabal"
-- , warningTest "doubledash.cabal"
-- , warningTest "multiplesingular.cabal"
-- , warningTest "wildcard.cabal"
-- , warningTest "operator.cabal"
-- , warningTest "specversion-a.cabal"
-- , warningTest "specversion-b.cabal"
-- , warningTest "specversion-c.cabal"
-- -- TODO: not implemented yet
-- , warningTest PWTExtraTestModule "extratestmodule.cabal"
[ testParsePrintExact "bounded.cabal"
-- , testParsePrintExact "anynone.cabal" -- TODO version ranges
]

testParsePrintExact :: FilePath -> TestTree
Expand Down

0 comments on commit d3adb26

Please sign in to comment.