Fix edge cases and consistency issues
This commit is contained in:
@@ -208,7 +208,7 @@ fn add_and_list_history_entries() {
|
||||
],
|
||||
};
|
||||
|
||||
history.add(entry.clone()).unwrap();
|
||||
history.add(entry.clone(), 50, 30).unwrap();
|
||||
let entries = history.list().unwrap();
|
||||
|
||||
assert_eq!(entries.len(), 1);
|
||||
@@ -236,7 +236,7 @@ fn history_appends_entries() {
|
||||
total_output_bytes: 500,
|
||||
elapsed_ms: 100,
|
||||
output_files: vec![],
|
||||
})
|
||||
}, 50, 30)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ fn clear_history() {
|
||||
total_output_bytes: 500,
|
||||
elapsed_ms: 100,
|
||||
output_files: vec![],
|
||||
})
|
||||
}, 50, 30)
|
||||
.unwrap();
|
||||
|
||||
history.clear().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user