Skip to content
Snippets Groups Projects
Commit ddb02060 authored by hjk's avatar hjk Committed by con
Browse files

fakevim: add two (currently partially failing) tests for cw and dw

(cherry picked from commit c75aa743)
parent cfdbdc7e
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,8 @@ public slots:
private slots:
// command mode
void command_cc();
void command_cw();
void command_dw();
void command_dd();
void command_dd_2();
void command_dollar();
......@@ -272,6 +274,32 @@ void tst_FakeVim::command_cc()
check("3ccxyz" + escape, l[0] + "\nabc\nxy@z\n" + lmid(5));
}
void tst_FakeVim::command_cw()
{
setup();
move("j", "@" + l[1]);
qWarning("FIXME");
return; // FIXME
check("cwx" + escape, l[0] + "\n@xinclude <QtCore>\n" + lmid(2));
}
void tst_FakeVim::command_dw()
{
setup();
check("dw", "@#include <QtCore>\n" + lmid(2));
check("dw", "@include <QtCore>\n" + lmid(2));
check("dw", "@<QtCore>\n" + lmid(2));
check("dw", "@QtCore>\n" + lmid(2));
check("dw", "@>\n" + lmid(2));
qWarning("FIXME");
//check("dw", "@\n" + lmid(2)); // FIXME: Real vim has this intermediate step
check("dw", "@#include <QtGui>\n" + lmid(3));
check("dw", "@include <QtGui>\n" + lmid(3));
check("dw", "@<QtGui>\n" + lmid(3));
check("dw", "@QtGui>\n" + lmid(3));
check("dw", "@>\n" + lmid(3));
}
void tst_FakeVim::command_dd()
{
setup();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment