Turn assertionless tests into Cargo examples

This commit is contained in:
Aaron Fenyes 2024-11-08 19:48:26 -08:00
parent e917272c60
commit 519d0f49df
5 changed files with 88 additions and 97 deletions

View file

@ -1,8 +1,8 @@
# based on "Enabling print statements in Cargo tests", by Jon Almeida
# run all Cargo examples, as described here:
#
# https://jonalmeida.com/posts/2015/01/23/print-cargo/
# Karol Kuczmarski. "Add examples to your Rust libraries"
# http://xion.io/post/code/rust-examples.html
#
cargo test -- --nocapture engine::tests::irisawa_hexlet_test
cargo test -- --nocapture engine::tests::three_spheres_example
cargo test -- --nocapture engine::tests::point_on_sphere_example
cargo run --example three-spheres
cargo run --example point-on-sphere