Skip to content

Commit

Permalink
Test added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kanghyojun committed Apr 12, 2018
1 parent 3e08746 commit 6684371
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Nirum/PackageSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ testPackage target' = do
Right countriesM <- parseFile (path </> "countries.nrm")
Right addressM <- parseFile (path </> "address.nrm")
Right pdfServiceM <- parseFile (path </> "pdf-service.nrm")
Right geoM <- parseFile (path </> "geo.nrm")
let modules = [ (["blockchain"], blockchainM)
, (["builtins"], builtinsM)
, (["geo"], geoM)
, (["product"], productM)
, (["shapes"], shapesM)
, (["countries"], countriesM)
Expand Down Expand Up @@ -122,6 +124,7 @@ testPackage target' = do
mods' <- scanModules path
mods' `shouldBe` [ (["blockchain"], path </> "blockchain.nrm")
, (["builtins"], path </> "builtins.nrm")
, (["geo"], path </> "geo.nrm")
, (["product"], path </> "product.nrm")
, (["shapes"], path </> "shapes.nrm")
, (["countries"], path </> "countries.nrm")
Expand Down
2 changes: 2 additions & 0 deletions test/Nirum/TargetsSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ spec =
, "src-py2" </> "blockchain" </> "__init__.py"
, "src-py2" </> "builtins" </> "__init__.py"
, "src-py2" </> "countries" </> "__init__.py"
, "src-py2" </> "geo" </> "__init__.py"
, "src-py2" </> "pdf_service" </> "__init__.py"
, "src-py2" </> "product" </> "__init__.py"
, "src-py2" </> "shapes" </> "__init__.py"
, "src" </> "address" </> "__init__.py"
, "src" </> "blockchain" </> "__init__.py"
, "src" </> "builtins" </> "__init__.py"
, "src" </> "countries" </> "__init__.py"
, "src" </> "geo" </> "__init__.py"
, "src" </> "pdf_service" </> "__init__.py"
, "src" </> "product" </> "__init__.py"
, "src" </> "shapes" </> "__init__.py"
Expand Down

0 comments on commit 6684371

Please sign in to comment.