From 4852752d67bb6378fe1b791e3bf6777ec2bec97e Mon Sep 17 00:00:00 2001 From: John Andrews Date: Thu, 19 Aug 2021 21:23:54 -0400 Subject: [PATCH] Add a test for the autoloading behavior --- el/test/sclang-mode-test.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/el/test/sclang-mode-test.el b/el/test/sclang-mode-test.el index 1273019..54d78d4 100644 --- a/el/test/sclang-mode-test.el +++ b/el/test/sclang-mode-test.el @@ -1,6 +1,11 @@ ;; -*- no-byte-compile: t; lexical-binding: t; -*- ;;; 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 () "Loading a file with an scd extension should init sclang-mode" (find-file "fixtures/super-boring.scd")