aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-06-05 09:54:42 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-06-05 09:54:42 +0530
commitec34f2527a2c6738437a3339c490a9849c185247 (patch)
tree46fbe890eac6c277a120c2bafe1929716750a160 /fish_tests.cpp
parentb877181e172d04b90823412cb6e005b40608777d (diff)
Adding history builtin
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 002912ac..d9980194 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -863,7 +863,12 @@ void history_tests_t::test_history(void) {
history_search_t search2(history, L"et");
test_history_matches(search2, 1);
assert(search2.current_string() == L"Beta");
-
+
+ /* Test item removal */
+ history.remove(L"Alpha");
+ history_search_t search3(history, L"Alpha");
+ test_history_matches(search3, 0);
+
/* Test history escaping and unescaping, yaml, etc. */
std::vector<history_item_t> before, after;
history.clear();