-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
278 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
;;; plantuml-config-test.el --- tests for plantuml-mode configuration knobs -*- lexical-binding: t; -*- | ||
|
||
;; Author: Carlo Sciolla | ||
;; Maintainer: Carlo Sciolla | ||
;; URL: https://github.com/skuro/plantuml-mode | ||
|
||
;;; Commentary: | ||
|
||
;; Test user-accessible configuration knobs | ||
|
||
;;; Code: | ||
|
||
(require 'plantuml-mode) | ||
|
||
(ert-deftest plantuml-config-test/set-exec-mode-happy-path () | ||
"Test switching execution modes" | ||
(let ((orig-mode plantuml-exec-mode)) | ||
;; happy flows: | ||
(plantuml-set-exec-mode "server") | ||
(should (equal 'server plantuml-exec-mode)) | ||
(plantuml-set-exec-mode "jar") | ||
(should (equal 'jar plantuml-exec-mode)) | ||
|
||
(setq plantuml-exec-mode orig-mode))) | ||
|
||
(ert-deftest plantuml-config-test/set-exec-mode-wrong-mode () | ||
"Test setting the exec mode with the wrong text" | ||
(should-error (plantuml-set-exec-mode "turing-machine"))) | ||
|
||
(provide 'plantuml-mode-config-test) | ||
|
||
;;; plantuml-config-test.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters