File: test-less.el

package info (click to toggle)
flycheck 36.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,600 kB
  • sloc: lisp: 16,210; python: 718; makefile: 219; cpp: 24; ruby: 23; perl: 21; ada: 17; f90: 16; haskell: 15; javascript: 15; sh: 14; erlang: 14; xml: 14; ansic: 12; php: 9; tcl: 8; fortran: 3; vhdl: 2; awk: 1; sql: 1
file content (23 lines) | stat: -rw-r--r-- 911 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; test-less.el --- Flycheck Specs: Less -*- lexical-binding: t; -*-
;;; Code:
(require 'flycheck-buttercup)
(require 'test-helpers)

(describe "Language Less"
  (flycheck-buttercup-def-checker-test less less file-error
    (let* ((candidates (list "no-such-file.less"
                             "npm://no-such-file.less"
                             "no-such-file.less"))
           (message (string-join candidates ",")))
      (flycheck-buttercup-should-syntax-check
       "language/less/file-error.less" 'less-css-mode
       `(3 1 error ,(concat "'no-such-file.less' wasn't found. Tried - "
                            message)
           :checker less))))

  (flycheck-buttercup-def-checker-test less less syntax-error
    (flycheck-buttercup-should-syntax-check
     "language/less/syntax-error.less" 'less-css-mode
     '(1 1 error "Unrecognised input" :checker less))))

;;; test-less.el ends here