added srand calls to tests and examples
This commit is contained in:
parent
8b34d4417b
commit
692cfe4f52
@ -126,6 +126,9 @@ function generate_markdown(pkgname::Symbol)
|
|||||||
|
|
||||||
try
|
try
|
||||||
|
|
||||||
|
# we want to always produce consistent results
|
||||||
|
srand(1234)
|
||||||
|
|
||||||
# run the code
|
# run the code
|
||||||
map(eval, example.exprs)
|
map(eval, example.exprs)
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ using FactCheck
|
|||||||
|
|
||||||
# don't actually show the plots
|
# don't actually show the plots
|
||||||
plotDefault!(:show, false)
|
plotDefault!(:show, false)
|
||||||
|
srand(1234)
|
||||||
|
|
||||||
# note: we wrap in a try block so that the tests only run if we have the backend installed
|
# note: we wrap in a try block so that the tests only run if we have the backend installed
|
||||||
try
|
try
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user