From ddb02060c6e01355c52f21bc1194630ca3ae213c Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 20 Aug 2009 12:30:05 +0200 Subject: fakevim: add two (currently partially failing) tests for cw and dw (cherry picked from commit c75aa74362d4e03aabb02194c75fc733fc9b66fc) --- tests/auto/fakevim/main.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/auto/fakevim/main.cpp b/tests/auto/fakevim/main.cpp index ef4a2f6e3c..cf674adcbe 100644 --- a/tests/auto/fakevim/main.cpp +++ b/tests/auto/fakevim/main.cpp @@ -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 \n" + lmid(2)); +} + +void tst_FakeVim::command_dw() +{ + setup(); + check("dw", "@#include \n" + lmid(2)); + check("dw", "@include \n" + lmid(2)); + check("dw", "@\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 \n" + lmid(3)); + check("dw", "@include \n" + lmid(3)); + check("dw", "@\n" + lmid(3)); + check("dw", "@QtGui>\n" + lmid(3)); + check("dw", "@>\n" + lmid(3)); +} + void tst_FakeVim::command_dd() { setup(); -- cgit v1.2.3