diff --git a/README.md b/README.md index 02ee5f6..ce838da 100644 --- a/README.md +++ b/README.md @@ -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 ! like in bash * Get some sleep * Order the file (modules...) diff --git a/src/main.rs b/src/main.rs index ae164ee..005c62a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 + + }