Skip to content

Commit

Permalink
test for 'stack new' creating projects with valid and bogus names
Browse files Browse the repository at this point in the history
related to (closed) issue commercialhaskell#1336
  • Loading branch information
kadoban committed Nov 28, 2015
1 parent a4fdeae commit 014eab3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/integration/tests/1336-new-package-names/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import StackTest
import System.Directory
import System.FilePath

main :: IO ()
main = do
stack ["new", "1234a-4b-b4-abc-12b34"]
doesExist "./1234a-4b-b4-abc-12b34/stack.yaml"
stackErr ["new", "1234-abc"]
doesNotExist "./1234-abc/stack.yaml"
doesNotExist "./1234-abc"
stackErr ["new", "1-abc"]
stackErr ["new", "44444444444444"]
stackErr ["new", "abc-1"]

0 comments on commit 014eab3

Please sign in to comment.