Add a test for the autoloading behavior

This commit is contained in:
John Andrews 2021-08-19 21:23:54 -04:00
parent 4e1c886b98
commit 4852752d67

View file

@ -1,6 +1,11 @@
;; -*- no-byte-compile: t; lexical-binding: t; -*- ;; -*- no-byte-compile: t; lexical-binding: t; -*-
;;; test/sclang-mode-test.el ;;; test/sclang-mode-test.el
(ert-deftest sclang-autoloaded-functions ()
"Some functions should be callable interactively without requiring them"
(should (commandp 'sclang-start t))
(should (commandp 'sclang-mode t)))
(ert-deftest sclang-major-mode-init-test () (ert-deftest sclang-major-mode-init-test ()
"Loading a file with an scd extension should init sclang-mode" "Loading a file with an scd extension should init sclang-mode"
(find-file "fixtures/super-boring.scd") (find-file "fixtures/super-boring.scd")