Skip to content
Permalink
Browse files

added first unit tests

  • Loading branch information...
athalhammer committed Mar 23, 2019
1 parent b8484f0 commit dfe81acd2db083c04416b5f19cf0500c19747ded
Showing with 1,346,296 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +9 −0 README.md
  3. 0 lib/__init__.py
  4. 0 test/__init__.py
  5. +673,119 −0 test/bar-20190301.links
  6. +673,119 −0 test/bar-20190301.links.right
  7. +48 −0 test/danker_test.py
@@ -0,0 +1 @@
*/__pycache__/
@@ -64,6 +64,15 @@ Output of ``./danker.sh ALL`` on bi-weekly Wikipedia dumps.
Before __danker__, I performed a number of experiments with [DBpedia "page links" datasets](http://wiki.dbpedia.org/services-resources/documentation/datasets#pagelinks) most of which are documented at http://people.aifb.kit.edu/ath/.

## Test
The unit tests assure correctness and compare the results of danker to the implementation of [NetworkX](https://networkx.github.io/). The tests need the `numpy` and `networkx` libraries installed.

Execute the unit tests as follows:

```
python3 -m unittest test/danker_test.py
```


In the directory `test` is a small graph with which you can try out the PageRank core of __danker__.

```bash
No changes.
No changes.

0 comments on commit dfe81ac

Please sign in to comment.
You can’t perform that action at this time.