mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 16:51:16 -03:00
@@ -3128,8 +3128,10 @@ void history_tests_t::test_history_formats(void) {
|
||||
if (!f) {
|
||||
err(L"Couldn't open file tests/history_sample_bash");
|
||||
} else {
|
||||
// It should skip over the export command since that's a bash-ism.
|
||||
const wchar_t *expected[] = {L"echo supsup", L"history --help", L"echo foo", NULL};
|
||||
// The results are in the reverse order that they appear in the bash history file.
|
||||
// We don't expect whitespace to be elided.
|
||||
const wchar_t *expected[] = {L"sleep 123", L" final line", L"echo supsup",
|
||||
L"history --help", L"echo foo", NULL};
|
||||
history_t &test_history = history_t::history_with_name(L"bash_import");
|
||||
test_history.populate_from_bash(f);
|
||||
if (!history_equals(test_history, expected)) {
|
||||
|
||||
Reference in New Issue
Block a user