benaryorg / rust-cli_calculator

a calculator for the command line (written in Rust)
ISC License
0 stars 0 forks source link

add tests #5

Open benaryorg opened 9 years ago

benaryorg commented 9 years ago

There are a lot of tests to be included to check if it is actually working.

benaryorg commented 9 years ago

This will require more work as inline tests are not supported for binary projects.

That's right, cargo test tests embedded documentation too. However, cargo test will not test binary crates, only library ones. This is due to the way rustdoc works: it links against the library to be tested, but with a binary, there’s nothing to link to. Rust Documentation (11-06-2015)