[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 822bf18 056/434: Update test.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 822bf18 056/434: Update test. |
Date: |
Sat, 7 Aug 2021 09:19:54 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 822bf18adfbe7bb2a15e62a5b184ebe108279200
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Update test.
---
features/multiple-cursors-core.feature | 5 +++--
features/step-definitions/multiple-cursors-steps.el | 9 +++++----
util/ecukes | 2 +-
3 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/features/multiple-cursors-core.feature
b/features/multiple-cursors-core.feature
index 8c6f2ff..63ef45f 100644
--- a/features/multiple-cursors-core.feature
+++ b/features/multiple-cursors-core.feature
@@ -5,8 +5,9 @@ Feature: Multiple cursors core
Scenario: Two cursors
Given there is no region selected
- When I insert "This text contains the word text twice"
+ When I insert "This text contains the word text thrice (text)"
And I select "text"
And I press "C->"
+ And I press "C->"
And I press "C-g"
- Then I should have 2 cursors
+ Then I should have 3 cursors
diff --git a/features/step-definitions/multiple-cursors-steps.el
b/features/step-definitions/multiple-cursors-steps.el
index 486aa32..7f750d3 100644
--- a/features/step-definitions/multiple-cursors-steps.el
+++ b/features/step-definitions/multiple-cursors-steps.el
@@ -3,13 +3,14 @@
(delete-selection-mode 1)))
(defun is-extra-cursor-p (o)
+ (message "overlay-type: %S" (overlay-get o 'type))
(eq (overlay-get o 'type) 'additional-cursor))
(defun num-cursors ()
(1+ (count-if 'is-extra-cursor-p
(overlays-in (point-min) (point-max)))))
-(Then "^I should have 2 cursors$"
- (lambda ()
- (assert (eq 2 (num-cursors)) nil
- "Expected to have 2 cursors, but was %d." (num-cursors))))
+(Then "^I should have \\([0-9]+\\) cursors$"
+ (lambda (num)
+ (assert (eq (string-to-number num) (num-cursors)) nil
+ "Expected to have %s cursors, but was %d." num
(num-cursors))))
diff --git a/util/ecukes b/util/ecukes
index 4b30d7d..2e8898d 160000
--- a/util/ecukes
+++ b/util/ecukes
@@ -1 +1 @@
-Subproject commit 4b30d7dd4ccf070a5efc73d5615e815ece484882
+Subproject commit 2e8898df9aa5d8743e980e1e18c068d9e24a222c
- [nongnu] elpa/multiple-cursors 45c6cd0 256/434: Add mc/mark-all-dwim, (continued)
- [nongnu] elpa/multiple-cursors 45c6cd0 256/434: Add mc/mark-all-dwim, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors e28090d 259/434: Merge pull request #106 from porterjamesj/patch-1, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d69ae15 073/434: Use setq for default lists to be able to re-evaluate., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 487e8be 006/434: Added docstrings to each function., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a4d406e 011/434: Conclude multiple-cursors-mode with <return>, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors dcd9c52 022/434: Add new feature test., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 03dfc70 024/434: A working multiple-regions implementation, with some issues., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 1392027 031/434: Separate secondary stuff from core., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 759391e 045/434: Don't message about skipping known run-once commands, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 71f444a 050/434: Remove unused commands from whitelist., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 822bf18 056/434: Update test.,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 700db99 062/434: Add kill-ring-save to whitelist., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ed678df 061/434: Couple more core-tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a19c8c3 077/434: Add cycle-backwards to once-list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 51b282e 078/434: Switch to multiple-cursors-mode from rectangular-region-mode when doing expand-region, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c331366 099/434: Add multiple-cursors-pkg, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4c91260 004/434: Updated readme., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 399db27 012/434: More white-listed commands:, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fca0685 055/434: Use symbol properties on commands instead of maintaining a list of unsupported commands., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 50851e7 060/434: Add more core tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors de0519e 057/434: Add support for running lambdas for each cursor., ELPA Syncer, 2021/08/07