-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Builds and runs tests. Need to make test pass.
- Loading branch information
Showing
9 changed files
with
142 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
-- Startup commands for the GHC interpreter | |||
:set -hide-package monads-tf | |||
:set -hide-package monads-fd | |||
:set -i./src | |||
:set -i./dist/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,6 @@ | |||
#!/bin/sh | |||
|
|||
# do a clean build of all, including the tests | |||
cabal clean && cabal configure -fbuildtests && cabal build && cabal haddock | |||
|
|
||
cabal clean && cabal configure && cabal build | |||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
|
|||
import Test.Framework (defaultMain, testGroup, Test) | |||
import Test.Framework.Providers.HUnit | |||
import Test.HUnit hiding (Test) | |||
|
|||
|
|||
import Language.JavaScript.Parser.Parser | |||
|
|||
main :: IO () | |||
main = defaultMain [testSuite] | |||
|
|||
testSuite :: Test | |||
testSuite = testGroup "Parser" | |||
[ | |||
testCase "helloWorld" caseHelloWorld | |||
] | |||
|
|||
--srcHelloWorld = "Hello" | |||
srcHelloWorld = ";" | |||
caseHelloWorld = | |||
"Done Empty JSFunction (JSIdentifier \"Hello\") [JSIdentifier \"a\"] (JSFunctionBody [])" | |||
@=? (show $ parseStmt srcHelloWorld "src") | |||
|
|||
|
|||
-- EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters