Skip to content

Commit

Permalink
Test for unknown licenses with cabal-version: 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Jul 11, 2018
1 parent fe3e818 commit 4d23731
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/EndToEndSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,20 @@ spec = around_ (inTempDirectoryNamed "foo") $ do
default-language: Haskell2010
|]) {packageCabalVersion = "2.2"}

it "doesn't touch unknown licenses" $ do
[i|
license: some-license
library:
cxx-options: -Wall
|] `shouldRenderTo` (package [i|
license: some-license
library
other-modules:
Paths_foo
cxx-options: -Wall
default-language: Haskell2010
|]) {packageCabalVersion = "2.2"}

describe "build-type" $ do
it "accept Simple" $ do
[i|
Expand Down

0 comments on commit 4d23731

Please sign in to comment.