[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure b4193fc 289/313: Reindent tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure b4193fc 289/313: Reindent tests |
Date: |
Wed, 11 Aug 2021 10:00:35 -0400 (EDT) |
branch: elpa/inf-clojure
commit b4193fce80a5d2b3cc777946f304059d07599d46
Author: dan sutton <dan@dpsutton.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Reindent tests
---
test/inf-clojure-tests.el | 93 ++++++++++++++++++++++++-----------------------
1 file changed, 47 insertions(+), 46 deletions(-)
diff --git a/test/inf-clojure-tests.el b/test/inf-clojure-tests.el
index c35c9b2..71f9266 100644
--- a/test/inf-clojure-tests.el
+++ b/test/inf-clojure-tests.el
@@ -48,76 +48,77 @@
(expect (inf-clojure--kw-to-symbol "::keyword") :to-equal "keyword")
(expect (inf-clojure--kw-to-symbol nil) :to-equal nil)))
-(describe "completion bounds at point" ()
+(describe "completion bounds at point"
(it "computes bounds for plain-text"
- (ict-with-assess-buffers
- ((a (insert "plain-text")))
- (with-current-buffer a
- (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
- :to-equal "plain-text"))))
+ (ict-with-assess-buffers
+ ((a (insert "plain-text")))
+ (with-current-buffer a
+ (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
+ :to-equal "plain-text"))))
(it "computes bounds for @deref"
- (ict-with-assess-buffers
- ((a (insert "@deref")))
- (with-current-buffer a
- (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
- :to-equal "deref"))))
+ (ict-with-assess-buffers
+ ((a (insert "@deref")))
+ (with-current-buffer a
+ (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
+ :to-equal "deref"))))
(it "computes bounds for ^:keyword"
- (ict-with-assess-buffers
- ((a (insert "^:keyword")))
- (with-current-buffer a
- (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
- :to-equal ":keyword"))))
+ (ict-with-assess-buffers
+ ((a (insert "^:keyword")))
+ (with-current-buffer a
+ (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
+ :to-equal ":keyword"))))
(it "computes bounds for ::keyword"
- (ict-with-assess-buffers
- ((a (insert "::keyword")))
- (with-current-buffer a
- (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
- :to-equal "::keyword"))))
+ (ict-with-assess-buffers
+ ((a (insert "::keyword")))
+ (with-current-buffer a
+ (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
+ :to-equal "::keyword"))))
(it "computes bounds for [^:keyword (combined break chars and keyword)"
- (ict-with-assess-buffers
- ((a (insert "[^:keyword")))
- (with-current-buffer a
- (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
- :to-equal ":keyword"))))
+ (ict-with-assess-buffers
+ ((a (insert "[^:keyword")))
+ (with-current-buffer a
+ (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
+ :to-equal ":keyword"))))
(it "computes no bounds for point directly after a break expression"
- (ict-with-assess-buffers
- ((a (insert "@")))
- (with-current-buffer a
- (expect
- (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
- :not :to-be nil))))
+ (ict-with-assess-buffers
+ ((a (insert "@")))
+ (with-current-buffer a
+ (expect
+ (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
+ :not :to-be nil))))
(it "computes bounds for [symbol"
- (ict-with-assess-buffers
- ((a (insert "[symbol")))
- (with-current-buffer a
- (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
- :to-equal "symbol"))))
+ (ict-with-assess-buffers
+ ((a (insert "[symbol")))
+ (with-current-buffer a
+ (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
+ :to-equal "symbol"))))
(it "computes bounds for (@deref (multiple break chars)"
- (ict-with-assess-buffers
- ((a (insert "(@deref")))
- (with-current-buffer a
- (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
- :to-equal "deref")))))
+ (ict-with-assess-buffers
+ ((a (insert "(@deref")))
+ (with-current-buffer a
+ (expect (ict-bounds-string
(inf-clojure-completion-bounds-of-expr-at-point))
+ :to-equal "deref")))))
(describe "inf-clojure--sanitize-command"
(it "sanitizes the command correctly"
- (expect (inf-clojure--sanitize-command "(doc println)") :to-equal "(doc
println)\n"))
+ (expect (inf-clojure--sanitize-command "(doc println)") :to-equal "(doc
println)\n"))
(it "trims newline at the right of a command"
- (expect (inf-clojure--sanitize-command "(doc println)\n\n\n\n") :to-equal
"(doc println)\n"))
+ (expect (inf-clojure--sanitize-command "(doc println)\n\n\n\n") :to-equal
"(doc println)\n"))
(it "returns empty string when the command is empty"
- (expect (inf-clojure--sanitize-command " ") :to-equal ""))
+ (expect (inf-clojure--sanitize-command " ") :to-equal ""))
(it "only removes whitespace at the end of the command - fix 152"
- (expect (inf-clojure--sanitize-command "1 5") :to-equal "1 5\n")))
+ (expect (inf-clojure--sanitize-command "1 5") :to-equal "1 5\n")))
+
(describe "inf-clojure--update-feature"
(it "updates new forms correctly"
- [nongnu] elpa/inf-clojure 0fc2350 225/313: Fix for eldoc-mode for ClojureCLR, (continued)
- [nongnu] elpa/inf-clojure 0fc2350 225/313: Fix for eldoc-mode for ClojureCLR, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure a61dd84 232/313: Insert top level defun into repl, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure bcd806a 251/313: Unify references to the term REPL, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure a7f07a0 245/313: Set artificial to true on comint-send-input, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e291da3 274/313: Update README.md, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 787400f 264/313: [Fix #178] Ensure there is a directory for comint (thanks mcphailm), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6cb8e43 277/313: Update the CI images, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 477fd7c 272/313: Tweak some wording, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure a98a260 281/313: [#152] Add a changelog entry, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f4a279e 286/313: [Fix #177] Don't run the tests on Emacs 25, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b4193fc 289/313: Reindent tests,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure f24722c 294/313: Extract useful functions, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e1a93c7 121/313: Add lock around REPL type detection, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 5ef6bdf 123/313: Revert "Remove unwanted ansi chars from the REPL output", ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7441d3b 120/313: Fix REPL type detection, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 2669544 129/313: [Fix #63] Avoid spurious output by using buffer redirection, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0fbcfcb 140/313: Improve the README a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure db7bfaf 155/313: Fix the changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 42f860f 169/313: Add Multiple Process Support section to README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 3a93815 170/313: [Fix #105] Add planck-specific function for show-arglist (#106), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 204e5b7 114/313: Do some cleanup in preparation for a major release, ELPA Syncer, 2021/08/11