bkaradzic / go-lz4

Port of LZ4 lossless compression algorithm to Go
BSD 2-Clause "Simplified" License
211 stars 23 forks source link

Add some basic tests so Travis does more than just build. #12

Closed dgryski closed 10 years ago

dgryski commented 10 years ago

These are some sanity tests to make sure we actually encode/decode things.

I'm using /usr/share/dict/words as a source of input. If you're prefer (because the line-endings suggest to me you're on windows) we can import a novel from Project Gutenberg and use that instead so the data is actually commited to the repo.

The snappy tests actually download their larger test data at benchmark time, if requested, so that's an option too. I wouldn't want to do that for the basic tests though.

dgryski commented 10 years ago

Turns out Travis doesn't have /usr/share/dict/words. I've included a copy of Project Gutenberg's "The Adventures of Sherlock Homles" as testdata.