Skip to content

Commit

Permalink
Forgot the purpose of this test
Browse files Browse the repository at this point in the history
  • Loading branch information
TGRCdev committed Jan 14, 2025
1 parent 90cf30f commit bf72915
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/config_systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ fn config_systems_function_macro() {
#[butler_plugin]
impl Plugin for MyPlugin {
fn build(&self, app: &mut App) {
app.insert_resource(Marker("".to_string()));
app.insert_resource(Marker(0));
}
}

#[derive(Resource)]
struct Marker(pub String);
struct Marker(pub u8);

config_systems! {
(plugin = MyPlugin, schedule = Startup)
Expand All @@ -76,14 +76,14 @@ fn config_systems_function_macro() {
#[system(schedule = Startup)]
fn hello_world(mut marker: ResMut<Marker>)
{
marker.0 += "A";
marker.0 += 1;
}

#[system]
fn get_time(
mut marker: ResMut<Marker>,
) {
marker.0 += "B";
marker.0 += 1;
}
}

Expand All @@ -92,7 +92,7 @@ fn config_systems_function_macro() {
.add_systems(
PostStartup,
|marker: Res<Marker>| {
assert_eq!(marker.0, "AB");
assert_eq!(marker.0, 2);
},
)
.run();
Expand Down

0 comments on commit bf72915

Please sign in to comment.