diff --git a/examples/todos/tests/carl_sagan.ice b/examples/todos/tests/carl_sagan.ice index cb9b91ed..aaf8cb5c 100644 --- a/examples/todos/tests/carl_sagan.ice +++ b/examples/todos/tests/carl_sagan.ice @@ -1,5 +1,5 @@ viewport: 500x800 -mode: Impatient +mode: Immediate preset: Empty ----- click at "What needs to be done?" diff --git a/test/src/emulator.rs b/test/src/emulator.rs index 5f46caf2..0bd653d7 100644 --- a/test/src/emulator.rs +++ b/test/src/emulator.rs @@ -391,7 +391,7 @@ impl Emulator

{ .boxed(), ); } - Mode::Impatient => { + Mode::Immediate => { self.runtime.run( stream .map(Action_::Runtime) @@ -452,12 +452,12 @@ pub enum Mode { /// Waits only for the tasks directly spawned by an [`Instruction`]. Patient, /// Never waits for any tasks to finish. - Impatient, + Immediate, } impl Mode { /// A list of all the available modes. - pub const ALL: &[Self] = &[Self::Zen, Self::Patient, Self::Impatient]; + pub const ALL: &[Self] = &[Self::Zen, Self::Patient, Self::Immediate]; } impl fmt::Display for Mode { @@ -465,7 +465,7 @@ impl fmt::Display for Mode { f.write_str(match self { Self::Zen => "Zen", Self::Patient => "Patient", - Self::Impatient => "Impatient", + Self::Immediate => "Immediate", }) } } diff --git a/test/src/ice.rs b/test/src/ice.rs index 2777cf8e..cbad1822 100644 --- a/test/src/ice.rs +++ b/test/src/ice.rs @@ -34,7 +34,7 @@ impl Ice { /// /// ```text /// viewport: 500x800 - /// mode: Impatient + /// mode: Immediate /// preset: Empty /// ----- /// click at "What needs to be done?" @@ -96,7 +96,7 @@ impl Ice { mode = Some(match value.trim().to_lowercase().as_str() { "zen" => emulator::Mode::Zen, "patient" => emulator::Mode::Patient, - "impatient" => emulator::Mode::Impatient, + "immediate" => emulator::Mode::Immediate, _ => { return Err(ParseError::InvalidMode { line: i, @@ -157,15 +157,7 @@ impl std::fmt::Display for Ice { height = self.viewport.height as u32, // TODO )?; - writeln!( - f, - "mode: {}", - match self.mode { - emulator::Mode::Zen => "Zen", - emulator::Mode::Patient => "Patient", - emulator::Mode::Impatient => "Impatient", - } - )?; + writeln!(f, "mode: {}", self.mode)?; if let Some(preset) = &self.preset { writeln!(f, "preset: {preset}")?;