emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/kotlin-mode 5e9aff2ae9 122/162: Fix tests to run in the ex


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode 5e9aff2ae9 122/162: Fix tests to run in the expected test environment.
Date: Sat, 29 Jan 2022 08:25:29 -0500 (EST)

branch: elpa/kotlin-mode
commit 5e9aff2ae94ef7cb60025f84f9487526a893c382
Author: Martin <martin.blake@hotmail.co.uk>
Commit: Martin <martin.blake@hotmail.co.uk>

    Fix tests to run in the expected test environment.
---
 kotlin-mode.el           | 2 ++
 test/kotlin-mode-test.el | 8 ++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index 5ff46bfe28..e5c7b92373 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -28,6 +28,8 @@
 (require 'comint)
 (require 'rx)
 (require 'cc-cmds)
+(require 'cl)
+(require 'eieio)
 
 (defgroup kotlin nil
   "A Kotlin major mode."
diff --git a/test/kotlin-mode-test.el b/test/kotlin-mode-test.el
index 8cbabe3316..5329d00afa 100644
--- a/test/kotlin-mode-test.el
+++ b/test/kotlin-mode-test.el
@@ -1,4 +1,8 @@
-(load-file "../kotlin-mode.el")
+;; Tests assume a tab is represented by 4 spaces
+(setq-default indent-tabs-mode nil)
+(setq-default tab-width 4)
+
+(load-file "kotlin-mode.el")
 
 ;(require 'kotlin-mode)
 
@@ -81,7 +85,7 @@ return a + b
 
 (ert-deftest kotlin-mode--sample-test ()
   (with-temp-buffer
-      (insert-file-contents "sample.kt")
+      (insert-file-contents "test/sample.kt")
       (beginning-of-buffer)
       (while (not (eobp))
         (let ((expected-line (thing-at-point 'line)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]