MCPcopy Index your code
hub / github.com/endbasic/endbasic / set_previous

Method set_previous

std/src/console/readline.rs:600–603  ·  view source on GitHub ↗

Sets the previous text to use for the test.

(mut self, previous: &'static str)

Source from the content-addressed store, hash-verified

598
599 /// Sets the previous text to use for the test.
600 fn set_previous(mut self, previous: &'static str) -> Self {
601 self.previous = previous;
602 self
603 }
604
605 /// Enables history tracking and sets the history to use for the test as `history` and
606 /// expects that `history` matches `exp_history` upon test completion.

Calls

no outgoing calls