Readme
This commit is contained in:
parent
1c897536c9
commit
e770d7cb18
@ -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
|
* Tests for this history system
|
||||||
|
|
||||||
# Todo
|
# 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 history command
|
||||||
|
* Add a builtin !<number> like in bash
|
||||||
* Get some sleep
|
* Get some sleep
|
||||||
* Order the file (modules...)
|
* Order the file (modules...)
|
||||||
|
@ -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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
@ -195,6 +191,9 @@ mod tests {
|
|||||||
assert_eq!(mycmd, String::from("ls"));
|
assert_eq!(mycmd, String::from("ls"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//test add history line
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user