summaryrefslogtreecommitdiff
path: root/test/cider-util-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/cider-util-tests.el')
-rw-r--r--test/cider-util-tests.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/cider-util-tests.el b/test/cider-util-tests.el
index af6ef5f8..8b694d41 100644
--- a/test/cider-util-tests.el
+++ b/test/cider-util-tests.el
@@ -191,3 +191,14 @@
(insert "(test-function arg1 arg2 arg3)")
(backward-char 2)
(expect (cider-second-sexp-in-list) :to-equal "arg1"))))
+
+(describe "cider-ansi-color-string-detect"
+ (it "detect ansi color successfully"
+ (expect (cider-ansi-color-string-p "an-ansi-str")
+ :to-be-truthy)
+ (expect (cider-ansi-color-string-p "[an-ansi-str]")
+ :to-be-truthy)
+ (expect (cider-ansi-color-string-p "[an-ansi-str]")
+ :not :to-be-truthy)
+ (expect (cider-ansi-color-string-p "'an-ansi-str")
+ :not :to-be-truthy)))