Skip to content

Instantly share code, notes, and snippets.

@alejandrociatti
Created January 3, 2019 23:17
Show Gist options
  • Save alejandrociatti/6bb874dadf047b3dc6d208512f5c60cc to your computer and use it in GitHub Desktop.
Save alejandrociatti/6bb874dadf047b3dc6d208512f5c60cc to your computer and use it in GitHub Desktop.
test/ # this directory contains the tests for the Calculus module
runtests.jl # this file runs the tests
using Calculus # obviously the tests use the Calculus module...
using Base.Test # and the Base.Test module...
tests = ["finite_difference", ... # the test file names are stored as strings...
for t in tests
include("$(t).jl") # ... so that they can be evaluated in a loop
end
...
finite_difference.jl # this file contains tests for finite differences,
@test ... # ... its name is included and run by runtests.jl
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment