aboutsummaryrefslogtreecommitdiff
path: root/examples/animation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/animation.rs')
-rw-r--r--examples/animation.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/animation.rs b/examples/animation.rs
index 7f20bca..431e4ea 100644
--- a/examples/animation.rs
+++ b/examples/animation.rs
@@ -29,7 +29,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
format!("Koch's Snowflake (n_iter = {})", i),
("sans-serif", 50),
)
- .build_ranged(-2.0..2.0, -1.5..1.5)?;
+ .build_cartesian_2d(-2.0..2.0, -1.5..1.5)?;
let mut snowflake_vertices = {
let mut current: Vec<(f64, f64)> = vec![
@@ -56,3 +56,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}
+
+#[test]
+fn entry_point() {
+ main().unwrap()
+}