From 634b23ee59515d17aaa579e15202530bf58f06c7 Mon Sep 17 00:00:00 2001 From: Joda Date: Sat, 27 Dec 2025 01:34:28 -0600 Subject: [PATCH 1/4] add example of a unit test to rainbow-clear-color --- examples/rainbow-clear-color.rs | 34 ++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/examples/rainbow-clear-color.rs b/examples/rainbow-clear-color.rs index db75d01..24aa2c1 100644 --- a/examples/rainbow-clear-color.rs +++ b/examples/rainbow-clear-color.rs @@ -1,7 +1,7 @@ use bevy::prelude::*; use bevy_pipe_affect::prelude::*; -fn main() { +fn main() -> AppExit { App::new() .add_plugins(DefaultPlugins) .add_systems( @@ -9,11 +9,39 @@ fn main() { pure(rainbow_clear_color) // pure() is optional, just forces the system to be read-only .pipe(affect), ) - .run(); + .run() } /// This system defines the clear color as a pure function of time. -fn rainbow_clear_color(time: Res