This commit is contained in:
Justine 2022-12-07 02:23:37 +01:00
parent 1c897536c9
commit e770d7cb18
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,8 @@ Later, I can even make something useful out of it. For example, I could make it
* Tests for this history system
# Todo
* Other tests for the rest of the features
* Other tests for the rest of the features (add test for write_history_line)
* Add a builtin history command
* Add a builtin !<number> like in bash
* Get some sleep
* Order the file (modules...)

View File

@ -166,10 +166,6 @@ fn main(){
}
//tests should be run with a history file such as:
//1 ls
//TODO make a function that creates such history file when testing
#[cfg(test)]
mod tests {
use super::*;
@ -195,6 +191,9 @@ mod tests {
assert_eq!(mycmd, String::from("ls"));
}
//test add history line
}