Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 554 Bytes

File metadata and controls

28 lines (20 loc) · 554 Bytes

Tally Votes - Rust Code Test

This is an exercise to practice Serde.

Build

# Clone the repository, then:
cd tally_votes_exercise
cargo build --release

Run

The program requires two files as arguments: contest JSON and votes JSON. There are several sample files in the test folder. To run with the provided sample after building the release:

cd tally_votes_exercise
target/release/tally_votes_exercise tests/contest.json tests/votes.json

Or using cargo:

cargo run -- tests/contest.json  tests/votes.json