add indentation tests for object diagrams

This commit is contained in:
René Schmelzer 2019-03-10 21:42:32 +01:00
parent 96ec931f64
commit 05b89bdcf3
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
;;; plantuml-indentation-object-test.el --- PlantUML Mode indentation tests -*- lexical-binding: t; -*-
;; Author: René Schmelzer
;; Maintainer: Carlo Sciolla (skuro)
;; URL: https://github.com/skuro/plantuml-mode
;;; Commentary:
;; Test indentation for object diagrams.
;;; Code:
(ert-deftest plantuml-test-indentation/object-diagram ()
"Test correct indentation of plantuml object diagram elements.
These code examples are taken from www.plantuml.com
Note: object diagrams use many elements defined for class diagrams."
(plantuml-test-indent-block
"
object user {
name = \"Dummy\"
id = 123
}
"
"
object user {
name = \"Dummy\"
id = 123
}
"))
(provide 'plantuml-indentation-object-test)
;;; plantuml-indentation-object-test.el ends here