jpeddicord / askalono

A tool & library to detect open source licenses from texts
Apache License 2.0
258 stars 26 forks source link

Unit testing #5

Closed jpeddicord closed 6 years ago

jpeddicord commented 6 years ago

This issue will probably need to be split out into smaller pieces.

Right now: 0 unit tests. Where I want to be: near-full test coverage.

This doesn't cover overall tests for identifying licenses; that's in #4.

jpeddicord commented 6 years ago

Stuck a test stub here: https://github.com/amzn/askalono/blob/54299c7db3ca1dc443ff890015c7e87891a09c24/src/ngram.rs#L110

Added to familiarize myself, but this is still free for hacking on.

jpeddicord commented 6 years ago

I'm comfortable with the state of tests in askalono right now. There's always room for improvement, but I think this is resolvable.