Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
c447463e
Commit
c447463e
authored
Jan 23, 2013
by
Stephane Glondu
Browse files
Keep all test data in sandbox
parent
cdd38a2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/sandbox.ml
View file @
c447463e
...
...
@@ -119,6 +119,8 @@ let verbose_verify_election_test_data (e, ballots, signatures, private_data) =
private_data
.
private_keys
));;
let
iter_keep
f
xs
=
List
.
iter
f
xs
;
xs
;;
let
load_election_and_verify_it_all
dirname
=
load_elections_and_votes
dirname
|>
Lwt_stream
.
to_list
|>
Lwt_main
.
run
|>
...
...
@@ -128,6 +130,6 @@ let load_election_and_verify_it_all dirname =
let
private_data
=
load_election_private_data
dirname
(
Uuidm
.
to_string
e
.
election
.
e_uuid
)
in
(
e
,
ballots
,
signatures
,
private_data
)
)
|>
List
.
iter
verbose_verify_election_test_data
;;
iter_keep
verbose_verify_election_test_data
;;
let
()
=
load_election_and_verify_it_all
"tests/data"
let
all_data
=
load_election_and_verify_it_all
"tests/data"
;;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment