-
Notifications
You must be signed in to change notification settings - Fork 42
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
1 changed file
with
17 additions
and
0 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 |
---|---|---|
|
@@ -199,6 +199,23 @@ Yields: | |
] | ||
``` | ||
|
||
### Tests | ||
|
||
This project is tested with [nodeunit](https://github.com/caolan/nodeunit). | ||
|
||
To run tests, you'll need to install this project from source and install its | ||
node dependencies: | ||
|
||
``` | ||
git clone [email protected]:unitedstates/citation.git | ||
cd citation | ||
npm install | ||
npm test | ||
``` | ||
|
||
Test cases are stored in the `test` directory. Each test case covers a subsection | ||
of the code and ensures that citations are correctly detected: for instance, see | ||
[test/stat.js](test/stat.js). | ||
|
||
## Public domain | ||
|
||
|