Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Remove starter
Browse files Browse the repository at this point in the history
  • Loading branch information
mizchi committed May 11, 2014
1 parent ee0c0c6 commit d319d35
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 93 deletions.
1 change: 0 additions & 1 deletion .psci
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
:m src/Foo.purs
:m src/Main.purs
:m src/Starter/Kit/Example.purs
:m bower_components/purescript-arrays/src/Data/Array.purs
:m bower_components/purescript-arrays/src/Data/Array/Unsafe.purs
:m bower_components/purescript-control/src/Control/Apply.purs
Expand Down
9 changes: 5 additions & 4 deletions gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ module.exports = (grunt) ->
psc:
tests:
options:
module: ["Main"]
main: true
src: ["tests/Tests.purs", "<%=libFiles%>"]
module: ["TestRunner"]
# main: true
noMagicDo: true
src: ["tests/TestRunner.purs", "<%=libFiles%>"]
dest: "tmp/tests.js"
app:
options:
Expand All @@ -33,7 +34,7 @@ module.exports = (grunt) ->
tests:
src: "tmp/tests.js"

grunt.registerTask("test", ["build", "clean:tests", "psc:tests", "execute:tests"])
grunt.registerTask("test", ["build", "clean:tests", "psc:tests", "execute:tests", "clean:tests"])
grunt.registerTask("build", ["psc:app"])
grunt.registerTask("make", ["pscMake", "dotPsci"])
grunt.registerTask("default", ["make", "build"])
28 changes: 0 additions & 28 deletions public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2240,34 +2240,6 @@ PS.Data_Tuple = (function () {
};
})();
var PS = PS || {};
PS.Starter_Kit_Example = (function () {
"use strict";
var Prelude = PS.Prelude;
var Data_Maybe = PS.Data_Maybe;
var diffs = function (_2) {
if (_2.length === 0) {
return Prelude["return"](Data_Maybe.monadMaybe({}))([ ]);
};
if (_2.length === 1) {
return Prelude["return"](Data_Maybe.monadMaybe({}))([ ]);
};
if (_2.length > 0) {
var _6 = _2.slice(1);
if (_6.length > 0) {
if (_2[0] <= _6[0]) {
return Prelude[">>="](Data_Maybe.bindMaybe({}))(diffs(_6))(function (_1) {
return Prelude["return"](Data_Maybe.monadMaybe({}))(Prelude[":"](_6[0] - _2[0])(_1));
});
};
};
};
return Data_Maybe.Nothing;
};
return {
diffs: diffs
};
})();
var PS = PS || {};
PS.Control_Monad_Eff = (function () {
"use strict";
var Prelude = PS.Prelude;
Expand Down
20 changes: 0 additions & 20 deletions src/Starter/Kit/Example.purs

This file was deleted.

21 changes: 21 additions & 0 deletions tests/TestRunner.purs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module TestRunner where

import Data.Array
import Data.Maybe

import Debug.Trace
import Control.Monad.Eff

-- Import Test.QuickCheck, which supports property-based testing
import Test.QuickCheck

-- Main.main is the entry point of the application
--
-- In the case of the test suite, Main.main will use QuickCheck to test a collection
-- of properties that we expect of the diffs function.
main = do
-- Use quickCheck' to override the number of tests to perform.
-- In this case, we only need to run the test once, since there is
-- only one empty list.
trace "Write test here"
{- quickCheck' 1 $ true -}
40 changes: 0 additions & 40 deletions tests/Tests.purs

This file was deleted.

0 comments on commit d319d35

Please sign in to comment.