Commit c75aa743 authored by hjk's avatar hjk

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

parent 0422c833
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment