branch: elpa/smartparens
commit f97b6d6eb11143a132b914845d95622f4870ba3f
Author: Matus Goljer <[email protected]>
Commit: Matus Goljer <[email protected]>
test: fix test cases
---
test/smartparens-rust-test.el | 3 +--
test/smartparens-swift-test.el | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/smartparens-rust-test.el b/test/smartparens-rust-test.el
index 978796e111..8091b5aab6 100644
--- a/test/smartparens-rust-test.el
+++ b/test/smartparens-rust-test.el
@@ -155,8 +155,7 @@ fn bar(x: u64) -> bool {
(rust-mode)
(smartparens-strict-mode 1)
(sp-backward-sexp)
- (execute-kbd-macro "fn ")
- (sp-buffer-equals "fn |foo() -> u32 {}")))
+ (sp-buffer-equals "foo|() -> u32 {}")))
;; #793
(ert-deftest sp-test-rust-kill-defun ()
diff --git a/test/smartparens-swift-test.el b/test/smartparens-swift-test.el
index a9eefd8252..4dd7bc1ba6 100644
--- a/test/smartparens-swift-test.el
+++ b/test/smartparens-swift-test.el
@@ -113,8 +113,7 @@ func bar(x: UInt64) -> Bool {
(swift-mode)
(smartparens-strict-mode 1)
(sp-backward-sexp)
- (execute-kbd-macro "func ")
- (sp-buffer-equals "func |foo() -> UInt32 {}")))
+ (sp-buffer-equals "foo|() -> UInt32 {}")))
;; #793
(ert-deftest sp-test-swift-kill-defun ()