Modernize examples and use them as tests #108
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the examples in the
examples/
directory so that they run onmodern versions of Julia and Compose. Additionally, tests have been added which
run all the examples and compares the generated output with cached output.
I've also included a Travis configuration file so that if you want to flip the
switch,
Compose.jl
can start to have CI tests and coverage data.Additionally, there are several spelling corrections, formatting adjustments,
and an update to the license file.
Caveat: I've had to guess what some of the examples do in order to modernize
them.
Implementation note:
The tests do not use
Base.Test
. Instead,runtests.jl
keeps track of anyfiles that differ from the cached output and outputs a list of different files.
If
diff
is available locally, also prints out the diff to facilitatecomparison. The files that differ are not automatically deleted from the
test
subdirectory where they are generated.