-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
118 additions
and
12 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 | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
:set -isrc | ||
:m + Test.QuickCheck | ||
:l Course.hs | ||
:m + Course | ||
:set prompt ">> " | ||
:set -Wall | ||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
syntax: glob | ||
*.swp | ||
*.*~ | ||
*.o | ||
*.orig | ||
*.hi | ||
*.lkshs | ||
*/.idea/ant.xml | ||
*/.idea/workspace.xml | ||
dist | ||
out | ||
syntax: glob | ||
*.swp | ||
*.*~ | ||
*.o | ||
*.orig | ||
*.hi | ||
*.lkshs | ||
*/.idea/ant.xml | ||
*/.idea/workspace.xml | ||
dist | ||
out |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module M where | ||
|
||
add :: | ||
Int | ||
-> Int | ||
-> Int | ||
add = | ||
(+) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:set -i../src -isrc | ||
:m + Test.QuickCheck | ||
:l Main | ||
:set prompt "test>> " | ||
:set -Wall | ||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist | ||
*.tix | ||
.hpc |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Name: Haskell-Package-Test | ||
Version: 0.0.1 | ||
Author: Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> | ||
Maintainer: Tony Morris | ||
Copyright: Tony Morris | ||
Synopsis: A skeleton for testing haskell packages | ||
Category: Development | ||
Description: A skeleton for testing haskell packages | ||
Homepage: https://github.com/tonymorris/haskell-package | ||
Cabal-Version: >= 1.6 | ||
Build-Type: Simple | ||
|
||
Source-Repository head | ||
Type: git | ||
Location: [email protected]:tonymorris/haskell-package.git | ||
|
||
Flag small_base | ||
Description: Choose the new, split-up base package. | ||
|
||
Executable package-test | ||
Hs-Source-Dirs: | ||
../src src | ||
|
||
Main-Is: | ||
Main.hs | ||
|
||
Ghc-Options: | ||
-O2 | ||
-Wall | ||
-fhpc | ||
-fwarn-tabs | ||
|
||
Build-Depends: | ||
base < 5 && >= 3 | ||
, QuickCheck | ||
, test-framework | ||
, test-framework-quickcheck2 | ||
, test-framework-hunit | ||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module M.Tests | ||
( | ||
main | ||
, test | ||
) where | ||
|
||
import Test.Framework | ||
import Test.Framework.Providers.QuickCheck2 (testProperty) | ||
import M | ||
|
||
main :: | ||
IO () | ||
main = | ||
defaultMain [test] | ||
|
||
test :: | ||
Test | ||
test = | ||
testGroup "M" | ||
[ | ||
testProperty "Right Identity" prop_right_identity | ||
] | ||
|
||
prop_right_identity :: | ||
Int | ||
-> Bool | ||
prop_right_identity n = | ||
n `add` 0 == n | ||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module Main where | ||
|
||
import qualified M.Tests | ||
import Test.Framework | ||
|
||
main :: | ||
IO () | ||
main = | ||
defaultMain tests | ||
|
||
tests :: | ||
[Test] | ||
tests = | ||
[ | ||
testGroup "Tests" | ||
[ | ||
M.Tests.test | ||
] | ||
] | ||
|