-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from davidchambers/sanctuary-scripts
integrate sanctuary-scripts
- Loading branch information
Showing
40 changed files
with
555 additions
and
227 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
repo-owner = davidchambers | ||
repo-name = doctest | ||
author-name = David Chambers <[email protected]> | ||
source-files = lib/*.js | ||
version-tag-prefix = |
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,2 @@ | ||
/test/**/*.js | ||
!/test/index.js |
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,14 @@ | ||
{ | ||
"root": true, | ||
"extends": ["./node_modules/sanctuary-style/eslint-es3.json"], | ||
"env": {"node": true}, | ||
"overrides": [ | ||
{ | ||
"files": ["lib/doctest.js"], | ||
"rules": { | ||
"no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 0}], | ||
"spaced-comment": ["error", "always", {"markers": ["/"]}] | ||
} | ||
} | ||
] | ||
} |
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 @@ | ||
package-lock=false |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ node_js: | |
- "4" | ||
- "6" | ||
- "8" | ||
install: | ||
- make setup | ||
script: | ||
- make test lint | ||
before_install: | ||
- git fetch origin refs/heads/master:refs/heads/master | ||
- if [[ "$TRAVIS_PULL_REQUEST_BRANCH" ]] ; then git checkout -b "$TRAVIS_PULL_REQUEST_BRANCH" ; fi | ||
- if [[ "$TRAVIS_NODE_VERSION" == 4 ]] ; then npm install --global [email protected] ; fi |
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,24 @@ | ||
# Contributing | ||
|
||
1. Update local master branch: | ||
|
||
$ git checkout master | ||
$ git pull upstream master | ||
|
||
2. Create feature branch: | ||
|
||
$ git checkout -b feature-x | ||
|
||
3. Make one or more atomic commits, and ensure that each commit has a | ||
descriptive commit message. Commit messages should be line wrapped | ||
at 72 characters. | ||
|
||
4. Run `npm test`, and address any errors. Preferably, fix commits in place | ||
using `git rebase` or `git commit --amend` to make the changes easier to | ||
review. | ||
|
||
5. Push: | ||
|
||
$ git push origin feature-x | ||
|
||
6. Open a pull request. |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
Version 2, December 2004 | ||
|
||
Copyright (c) 2012..2016 David Chambers <[email protected]> | ||
Copyright (c) 2016 David Chambers <[email protected]> | ||
|
||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
|
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
Empty file.
Empty file.
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,4 @@ | ||
#!/usr/bin/env bash | ||
set -euf -o pipefail | ||
|
||
node -- test/index.js |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
[ | ||
[ | ||
"doctest in AMD module", | ||
[ | ||
true, | ||
"32", | ||
"32", | ||
5 | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
[ | ||
[ | ||
"executable without file extension", | ||
[ | ||
true, | ||
"42", | ||
"42", | ||
4 | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
[ | ||
[ | ||
"exports", | ||
[ | ||
true, | ||
"42", | ||
"42", | ||
2 | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
[ | ||
[ | ||
"module.exports", | ||
[ | ||
true, | ||
"42", | ||
"42", | ||
2 | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
[ | ||
[ | ||
"require another CommonJS module", | ||
[ | ||
true, | ||
"\"function\"", | ||
"\"function\"", | ||
2 | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
[ | ||
[ | ||
"preserves 'use strict' directive", | ||
[ | ||
true, | ||
"undefined", | ||
"undefined", | ||
4 | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
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,92 @@ | ||
[ | ||
[ | ||
"input evaluates to Error with expected message", | ||
[ | ||
true, | ||
"Error: Invalid value", | ||
"Error: Invalid value", | ||
3 | ||
] | ||
], | ||
[ | ||
"input evaluates to Error without expected message", | ||
[ | ||
false, | ||
"Error", | ||
"Error: Invalid value", | ||
6 | ||
] | ||
], | ||
[ | ||
"input evaluates to Error with unexpected message", | ||
[ | ||
false, | ||
"Error: Invalid value", | ||
"Error", | ||
9 | ||
] | ||
], | ||
[ | ||
"input evaluates to Error with unexpected message", | ||
[ | ||
false, | ||
"Error: Invalid value", | ||
"Error: XXX", | ||
12 | ||
] | ||
], | ||
[ | ||
"evaluating input does not throw expected exception", | ||
[ | ||
false, | ||
"Error: Invalid value", | ||
"! Error: Invalid value", | ||
15 | ||
] | ||
], | ||
[ | ||
"evaluating input throws unexpected exception", | ||
[ | ||
false, | ||
"! Error: Invalid value", | ||
"Error: Invalid value", | ||
18 | ||
] | ||
], | ||
[ | ||
"evaluating input throws exception as expected, of expected type", | ||
[ | ||
true, | ||
"! TypeError", | ||
"! TypeError", | ||
21 | ||
] | ||
], | ||
[ | ||
"evaluating input throws exception as expected, of unexpected type", | ||
[ | ||
false, | ||
"! TypeError", | ||
"! Error", | ||
24 | ||
] | ||
], | ||
[ | ||
"evaluating input throws exception as expected, with expected message", | ||
[ | ||
true, | ||
"! Error: Invalid value", | ||
"! Error: Invalid value", | ||
27 | ||
] | ||
], | ||
[ | ||
"evaluating input throws exception as expected, with unexpected message", | ||
[ | ||
false, | ||
"! Error: Invalid value", | ||
"! Error: XXX", | ||
30 | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
[ | ||
[ | ||
"uses Z.equals for equality checks", | ||
[ | ||
true, | ||
"Absolute(-1)", | ||
"Absolute(1)", | ||
2 | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
[ | ||
["seq.next().value", [true, "1", "1", 13]], | ||
["seq.next().value", [true, "1", "1", 15]], | ||
["seq.next().value", [true, "2", "2", 17]], | ||
["seq.next().value", [true, "3", "3", 19]], | ||
["seq.next().value", [true, "5", "5", 21]] | ||
] |
Oops, something went wrong.